pub enum FlexibleResult<T, E> {
Ok(T),
Err(E),
FrameworkErr(FrameworkError),
}
Expand description
A flexible FIDL result.
Variants§
Ok(T)
The value of the flexible call when successful.
Err(E)
The error returned from a successful flexible call.
FrameworkErr(FrameworkError)
The error indicating that the flexible call failed.
Trait Implementations§
Source§impl<T, E> Encodable for FlexibleResult<T, E>
impl<T, E> Encodable for FlexibleResult<T, E>
Source§type Encoded = WireFlexibleResult<<T as Encodable>::Encoded, <E as Encodable>::Encoded>
type Encoded = WireFlexibleResult<<T as Encodable>::Encoded, <E as Encodable>::Encoded>
The wire type for the value.
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
encoding instead of calling
encode
. Read moreSource§impl<Enc, T, E> Encode<Enc> for FlexibleResult<T, E>
impl<Enc, T, E> Encode<Enc> for FlexibleResult<T, E>
Source§impl<T, WT, E, WE> TakeFrom<WireFlexibleResult<WT, WE>> for FlexibleResult<T, E>
impl<T, WT, E, WE> TakeFrom<WireFlexibleResult<WT, WE>> for FlexibleResult<T, E>
Source§fn take_from(from: &WireFlexibleResult<WT, WE>) -> Self
fn take_from(from: &WireFlexibleResult<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 moreAuto Trait Implementations§
impl<T, E> Freeze for FlexibleResult<T, E>
impl<T, E> RefUnwindSafe for FlexibleResult<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for FlexibleResult<T, E>
impl<T, E> Sync for FlexibleResult<T, E>
impl<T, E> Unpin for FlexibleResult<T, E>
impl<T, E> UnwindSafe for FlexibleResult<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