pub enum ReplyOutcome {
Success {
status: u16,
headers: BTreeMap<String, String>,
body: String,
encoding: Option<String>,
},
Error(String),
}Expand description
Classified outcome of a BrowserReply.
Variants§
Success
A successful response with status, headers, and body.
Fields
Error(String)
The browser reported a fetch() failure.
Auto Trait Implementations§
impl Freeze for ReplyOutcome
impl RefUnwindSafe for ReplyOutcome
impl Send for ReplyOutcome
impl Sync for ReplyOutcome
impl Unpin for ReplyOutcome
impl UnsafeUnpin for ReplyOutcome
impl UnwindSafe for ReplyOutcome
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