pub struct Strict<T>(pub T);Expand description
A strict FIDL response.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<'a, E, W, T> Encode<Strict<W>, E> for &'a Strict<T>
impl<'a, E, W, T> Encode<Strict<W>, E> for &'a Strict<T>
Source§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<Strict<W>>,
constraint: <W as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<Strict<W>>, constraint: <W as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<E, W, T> Encode<Strict<W>, E> for Strict<T>
impl<E, W, T> Encode<Strict<W>, E> for Strict<T>
Source§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<Strict<W>>,
constraint: <W as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<Strict<W>>, constraint: <W as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<T, W> FromWire<Strict<W>> for Strict<T>where
T: FromWire<W>,
impl<T, W> FromWire<Strict<W>> for Strict<T>where
T: FromWire<W>,
Source§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl<T, W> FromWireRef<Strict<W>> for Strict<T>where
T: FromWireRef<W>,
impl<T, W> FromWireRef<Strict<W>> for Strict<T>where
T: FromWireRef<W>,
Source§fn from_wire_ref(wire: &Strict<W>) -> Strict<T>
fn from_wire_ref(wire: &Strict<W>) -> Strict<T>
Converts the given reference to this type.
Auto Trait Implementations§
impl<T> Freeze for Strict<T>where
T: Freeze,
impl<T> RefUnwindSafe for Strict<T>where
T: RefUnwindSafe,
impl<T> Send for Strict<T>where
T: Send,
impl<T> Sync for Strict<T>where
T: Sync,
impl<T> Unpin for Strict<T>where
T: Unpin,
impl<T> UnsafeUnpin for Strict<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Strict<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
Source§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
Source§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
Source§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
Source§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
Source§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to Self