pub trait ToApplication {
type Output;
type Context<'a>;
// Required method
fn to_application(
&self,
context: Self::Context<'_>,
) -> Result<Self::Output, CodecError>;
}Expand description
Converts a transport-level type to an application-level type, ready for use in the viewer.
Required Associated Types§
Required Methods§
fn to_application( &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.