pub trait TransportOutput {
    type Output: OutputBuffer;

    // Required method
    fn output(&self, f: impl FnOnce(&mut Self::Output));
}
Expand description

Trait representing the capability to serialize an output message

Required Associated Types§

source

type Output: OutputBuffer

The type of OutputBuffer that will be provided to the caller

Required Methods§

source

fn output(&self, f: impl FnOnce(&mut Self::Output))

Request output of a message

The f callback will be called with an empty OutputBuffer that must be filled with the message to be sent.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> TransportOutput for &T
where T: TransportOutput,

§

type Output = <T as TransportOutput>::Output

source§

fn output(&self, f: impl FnOnce(&mut Self::Output))

Implementors§