pub enum JsResult<T> {
Ok(T),
Thrown(JsError),
Refused(Refusal),
Failed(RuntimeFailure),
}Expand description
The outcome of one request: a value, the site’s own exception, a value Brrrty refused to hand on, or a runtime that stopped.
Variants§
Ok(T)
Thrown(JsError)
Refused(Refusal)
The request ran, but its outcome can’t be used exactly.
Failed(RuntimeFailure)
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for JsResult<T>
Auto Trait Implementations§
impl<T> Forget for JsResult<T>
impl<T> Freeze for JsResult<T>
impl<T> Move for JsResult<T>
impl<T> RefUnwindSafe for JsResult<T>where
T: RefUnwindSafe,
impl<T> Send for JsResult<T>
impl<T> Sync for JsResult<T>
impl<T> Unpin for JsResult<T>
impl<T> UnsafeUnpin for JsResult<T>where
T: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl<T> UnwindSafe for JsResult<T>where
T: UnwindSafe,
RawVecInner: UnwindSafe,
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