Struct fidl::encoding::GenericMessage
source · pub struct GenericMessage<H, E> {
pub header: H,
pub body: E,
}
Expand description
A struct which encodes as GenericMessageType<H, T>
where E: Encode<T>
.
Fields§
§header: H
Header of the message.
body: E
Body of the message.
Trait Implementations§
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>
Auto Trait Implementations§
impl<H, E> Freeze for GenericMessage<H, E>
impl<H, E> RefUnwindSafe for GenericMessage<H, E>where
H: RefUnwindSafe,
E: RefUnwindSafe,
impl<H, E> Send for GenericMessage<H, E>
impl<H, E> Sync for GenericMessage<H, E>
impl<H, E> Unpin for GenericMessage<H, E>
impl<H, E> UnwindSafe for GenericMessage<H, E>where
H: 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