Enum FlexibleResult
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§
§impl<T, E> Debug for FlexibleResult<T, E>
impl<T, E> Debug for FlexibleResult<T, E>
§impl<T, E> Encodable for FlexibleResult<T, E>
impl<T, E> Encodable for FlexibleResult<T, E>
§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.
§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 more§impl<Enc, T, E> Encode<Enc> for FlexibleResult<T, E>
impl<Enc, T, E> Encode<Enc> for FlexibleResult<T, E>
§fn encode(
&mut self,
encoder: &mut Enc,
out: &mut MaybeUninit<<FlexibleResult<T, E> as Encodable>::Encoded>,
) -> Result<(), EncodeError>
fn encode( &mut self, encoder: &mut Enc, out: &mut MaybeUninit<<FlexibleResult<T, E> as Encodable>::Encoded>, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§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>
§fn take_from(from: &WireFlexibleResult<WT, WE>) -> FlexibleResult<T, E>
fn take_from(from: &WireFlexibleResult<WT, WE>) -> FlexibleResult<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 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