Struct WireResult
pub struct WireResult<T, E> { /* private fields */ }
Expand description
A FIDL result union.
Implementations§
§impl<T, E> WireResult<T, E>
impl<T, E> WireResult<T, E>
pub 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§
§impl<T, E> Debug for WireResult<T, E>
impl<T, E> Debug for WireResult<T, E>
§impl<D, T, E> Decode<D> for WireResult<T, E>
impl<D, T, E> Decode<D> for WireResult<T, E>
§fn decode(
slot: Slot<'_, WireResult<T, E>>,
decoder: &mut D,
) -> Result<(), DecodeError>
fn decode( slot: Slot<'_, WireResult<T, E>>, decoder: &mut D, ) -> Result<(), DecodeError>
Decodes a value into a slot using a decoder. Read more
§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>
§fn take_from(from: &WireResult<WT, WE>) -> Result<T, E>
fn take_from(from: &WireResult<WT, WE>) -> Result<T, E>
Converts from the given
T
, taking any resources that can’t be cloned.§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 more§impl<T, E> ZeroPadding for WireResult<T, E>
impl<T, E> ZeroPadding for WireResult<T, E>
§fn zero_padding(out: &mut MaybeUninit<WireResult<T, E>>)
fn zero_padding(out: &mut MaybeUninit<WireResult<T, E>>)
Writes zeroes to the padding for this type, if any.
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