pub enum Flexible<T> {
Ok(T),
FrameworkErr(FrameworkError),
}
Expand description
A flexible FIDL response.
Variants§
Ok(T)
The value of the flexible call when successful.
FrameworkErr(FrameworkError)
The error indicating that the flexible call failed.
Trait Implementations§
Source§impl<T> Encodable for Flexible<T>where
T: Encodable,
impl<T> Encodable for Flexible<T>where
T: Encodable,
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<T, WT> TakeFrom<WireFlexible<WT>> for Flexible<T>where
T: TakeFrom<WT>,
impl<T, WT> TakeFrom<WireFlexible<WT>> for Flexible<T>where
T: TakeFrom<WT>,
Source§fn take_from(from: &WireFlexible<WT>) -> Self
fn take_from(from: &WireFlexible<WT>) -> 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> Freeze for Flexible<T>where
T: Freeze,
impl<T> RefUnwindSafe for Flexible<T>where
T: RefUnwindSafe,
impl<T> Send for Flexible<T>where
T: Send,
impl<T> Sync for Flexible<T>where
T: Sync,
impl<T> Unpin for Flexible<T>where
T: Unpin,
impl<T> UnwindSafe for Flexible<T>where
T: 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