Skip to main content

Application

Trait Application 

Source
pub trait Application<'d>: Decode {
    type Duplex: Session<'d>;

    const CONNECT: Connect = block::Connect::Disabled;

    // Required method
    fn try_open<B>(
        &self,
        req: Admitted<Duplex, Self::Prepared, B>,
    ) -> Result<(Self::Duplex, B), (OpenError<Self::Error<'d>>, B)>;
}
Expand description

Exact duplex constructor consumed by multiplexed carriers.

Provided Associated Constants§

Source

const CONNECT: Connect = block::Connect::Disabled

Extended CONNECT capability of the route language.

Required Associated Types§

Required Methods§

Source

fn try_open<B>( &self, req: Admitted<Duplex, Self::Prepared, B>, ) -> Result<(Self::Duplex, B), (OpenError<Self::Error<'d>>, B)>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§