Type Alias TransactionMessage

Source
pub type TransactionMessage<E> = GenericMessage<TransactionHeader, E>;
Expand description

A struct which encodes as TransactionMessageType<T> where E: Encode<T>.

Aliased Type§

struct TransactionMessage<E> {
    pub header: TransactionHeader,
    pub body: E,
}

Fields§

§header: TransactionHeader

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>
where for<'a> H::Borrowed<'a>: Encode<H, D>,

Source§

unsafe fn encode( self, encoder: &mut Encoder<'_, D>, offset: usize, depth: Depth, ) -> Result<()>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more