pub struct GenericMessageType<H: ValueTypeMarker, T: TypeMarker>(/* private fields */);
Expand description
The FIDL type for a message consisting of a header H
and body T
.
Trait Implementations§
Source§impl<H: ValueTypeMarker, T: TypeMarker, D: ResourceDialect> Decode<GenericMessageType<H, T>, D> for GenericMessageOwned
impl<H: ValueTypeMarker, T: TypeMarker, D: ResourceDialect> Decode<GenericMessageType<H, T>, D> for GenericMessageOwned
Source§impl<H: ValueTypeMarker, T: TypeMarker, E: Encode<T, D>, D: ResourceDialect> Encode<GenericMessageType<H, T>, D> for GenericMessage<<H as TypeMarker>::Owned, E>
impl<H: ValueTypeMarker, T: TypeMarker, E: Encode<T, D>, D: ResourceDialect> Encode<GenericMessageType<H, T>, D> for GenericMessage<<H as TypeMarker>::Owned, E>
Source§impl<H: ValueTypeMarker, T: TypeMarker> TypeMarker for GenericMessageType<H, T>
impl<H: ValueTypeMarker, T: TypeMarker> TypeMarker for GenericMessageType<H, T>
Source§type Owned = GenericMessageOwned
type Owned = GenericMessageOwned
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(context: Context) -> usize
fn inline_align(context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(context: Context) -> usize
fn inline_size(context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Auto Trait Implementations§
impl<H, T> Freeze for GenericMessageType<H, T>
impl<H, T> RefUnwindSafe for GenericMessageType<H, T>where
H: RefUnwindSafe,
T: RefUnwindSafe,
impl<H, T> Send for GenericMessageType<H, T>
impl<H, T> Sync for GenericMessageType<H, T>
impl<H, T> Unpin for GenericMessageType<H, T>
impl<H, T> UnwindSafe for GenericMessageType<H, T>where
H: UnwindSafe,
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