ToApplication

Trait ToApplication 

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl ToApplication for Msg

Source§

type Output = LogMsg

Source§

type Context<'a> = (&'a mut dyn ApplicationIdInjector, Option<CrateVersion>)

Source§

fn to_application( &self, (app_id_injector, patched_version): Self::Context<'_>, ) -> Result<Self::Output, CodecError>

Source§

impl ToApplication for ArrowMsg

Source§

type Output = ArrowMsg

Source§

type Context<'a> = ()

Source§

fn to_application( &self, _context: Self::Context<'_>, ) -> Result<Self::Output, CodecError>

Source§

impl ToApplication for LogMsg

Source§

type Output = LogMsg

Source§

type Context<'a> = (&'a mut dyn ApplicationIdInjector, Option<CrateVersion>)

Source§

fn to_application( &self, app_id_injector: Self::Context<'_>, ) -> Result<Self::Output, CodecError>

Source§

impl ToApplication for RrdFooter

Source§

type Output = RrdFooter

Source§

type Context<'a> = ()

Source§

fn to_application( &self, _context: Self::Context<'_>, ) -> Result<Self::Output, CodecError>

Source§

impl ToApplication for RrdManifest

Source§

type Output = RrdManifest

Source§

type Context<'a> = ()

Source§

fn to_application( &self, _context: Self::Context<'_>, ) -> Result<Self::Output, CodecError>

Implementors§