pub struct WireResult<T, E> { /* private fields */ }
Expand description
A FIDL result union.
Implementations§
Source§impl<T, E> WireResult<T, E>
impl<T, E> WireResult<T, E>
Sourcepub fn unwrap_err(&self) -> &E
pub fn unwrap_err(&self) -> &E
Returns the contained Err
value.
Panics if the result was not Err
.
Trait Implementations§
Source§impl<T, E> Debug for WireResult<T, E>
impl<T, E> Debug for WireResult<T, E>
Source§impl<D, T, E> Decode<D> for WireResult<T, E>
impl<D, T, E> Decode<D> for WireResult<T, E>
Source§impl<T, E, WT, WE> TakeFrom<WireResult<WT, WE>> for Result<T, E>
impl<T, E, WT, WE> TakeFrom<WireResult<WT, WE>> for Result<T, E>
Source§fn take_from(from: &WireResult<WT, WE>) -> Self
fn take_from(from: &WireResult<WT, WE>) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.Source§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreSource§impl<T, E> ZeroPadding for WireResult<T, E>
impl<T, E> ZeroPadding for WireResult<T, E>
Source§unsafe fn zero_padding(ptr: *mut Self)
unsafe fn zero_padding(ptr: *mut Self)
Writes zeroes to the padding for this type, if any. Read more
Auto Trait Implementations§
impl<T, E> Freeze for WireResult<T, E>
impl<T, E> RefUnwindSafe for WireResult<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> !Send for WireResult<T, E>
impl<T, E> !Sync for WireResult<T, E>
impl<T, E> Unpin for WireResult<T, E>
impl<T, E> UnwindSafe for WireResult<T, E>where
T: UnwindSafe,
E: 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