pub struct ResultType<'a> {
pub ok: Option<Box<ComponentValType<'a>>>,
pub err: Option<Box<ComponentValType<'a>>>,
}Available on crate feature
component-model only.Expand description
A result type.
Fields§
§ok: Option<Box<ComponentValType<'a>>>The type on success.
err: Option<Box<ComponentValType<'a>>>The type on failure.
Trait Implementations§
Source§impl<'a> Debug for ResultType<'a>
impl<'a> Debug for ResultType<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResultType<'a>
impl<'a> RefUnwindSafe for ResultType<'a>
impl<'a> Send for ResultType<'a>
impl<'a> Sync for ResultType<'a>
impl<'a> Unpin for ResultType<'a>
impl<'a> UnwindSafe for ResultType<'a>
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