pub struct Strict<T> { /* private fields */ }Expand description
A strict FIDL message.
Implementations§
Source§impl<T> Strict<T>
impl<T> Strict<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes the Strict, returning the contained value.
Trait Implementations§
Source§impl<T> Constrained for Strict<T>where
T: Constrained,
impl<T> Constrained for Strict<T>where
T: Constrained,
Source§type Constraint = <T as Constrained>::Constraint
type Constraint = <T as Constrained>::Constraint
Type of constraint information for this type.
Source§fn validate(
slot: Slot<'_, Strict<T>>,
constraint: <Strict<T> as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( slot: Slot<'_, Strict<T>>, constraint: <Strict<T> as Constrained>::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Source§impl<D, T> Decode<D> for Strict<T>
impl<D, T> Decode<D> for Strict<T>
Source§fn decode(
slot: Slot<'_, Strict<T>>,
decoder: &mut D,
constraint: <T as Constrained>::Constraint,
) -> Result<(), DecodeError>
fn decode( slot: Slot<'_, Strict<T>>, decoder: &mut D, constraint: <T as Constrained>::Constraint, ) -> Result<(), DecodeError>
Decodes a value into a slot using a decoder. Read more
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.
Source§impl<T> IntoNatural for Strict<T>where
T: IntoNatural,
impl<T> IntoNatural for Strict<T>where
T: IntoNatural,
Source§type Natural = Strict<<T as IntoNatural>::Natural>
type Natural = Strict<<T as IntoNatural>::Natural>
A good default type for this wire type to convert into.
Source§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
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> 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