Struct WireResult
pub struct WireResult<'de, 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
.
pub fn into_result(self) -> Result<T, E>
pub fn into_result(self) -> Result<T, E>
Returns a Result
of the owned value or error.
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<'static, T, E>
impl<D, T, E> Decode<D> for WireResult<'static, T, E>
§fn decode(
slot: Slot<'_, WireResult<'static, T, E>>,
decoder: &mut D,
) -> Result<(), DecodeError>
fn decode( slot: Slot<'_, WireResult<'static, T, E>>, decoder: &mut D, ) -> Result<(), DecodeError>
Decodes a value into a slot using a decoder. Read more
§impl<T, E> Wire for WireResult<'static, T, E>
impl<T, E> Wire for WireResult<'static, T, E>
§type Decoded<'de> = WireResult<'de, <T as Wire>::Decoded<'de>, <E as Wire>::Decoded<'de>>
type Decoded<'de> = WireResult<'de, <T as Wire>::Decoded<'de>, <E as Wire>::Decoded<'de>>
The decoded wire type, restricted to the
'de
lifetime.§fn zero_padding(out: &mut MaybeUninit<WireResult<'static, T, E>>)
fn zero_padding(out: &mut MaybeUninit<WireResult<'static, T, E>>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl<'de, T, E> Freeze for WireResult<'de, T, E>
impl<'de, T, E> RefUnwindSafe for WireResult<'de, T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<'de, T, E> !Send for WireResult<'de, T, E>
impl<'de, T, E> !Sync for WireResult<'de, T, E>
impl<'de, T, E> Unpin for WireResult<'de, T, E>
impl<'de, T, E> !UnwindSafe for WireResult<'de, T, E>
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