pub enum NetEvent {
Started {
tag: String,
method: String,
url: String,
},
Completed {
tag: String,
ok: bool,
status: u16,
error: String,
},
}Expand description
One HTTP lifecycle event emitted by the scripting fetch/http layer.
A request produces a NetEvent::Started when it is dispatched and a
matching NetEvent::Completed (correlated by tag) when the worker
thread’s reply lands. The devtools Network tab pairs them by tag, the
same identifier scripts pass to fetch(url, tag) / http(#{...}).
Variants§
Started
A request was dispatched to the off-thread worker.
Fields
Completed
A previously-NetEvent::Started request’s reply arrived.
Fields
§
tag: StringCorrelation tag matching the NetEvent::Started event.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NetEvent
impl RefUnwindSafe for NetEvent
impl Send for NetEvent
impl Sync for NetEvent
impl Unpin for NetEvent
impl UnsafeUnpin for NetEvent
impl UnwindSafe for NetEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.