pub trait ToTransport {
type Output;
type Context<'a>;
// Required method
fn to_transport(
&self,
context: Self::Context<'_>,
) -> Result<Self::Output, CodecError>;
}Expand description
Converts an application-level type to a transport-level type, ready for encoding.
Required Associated Types§
Required Methods§
fn to_transport( &self, context: Self::Context<'_>, ) -> Result<Self::Output, CodecError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.