Trait muxado::Session

source ·
pub trait Session: Accept + OpenClose {
    type OpenClose: OpenClose;
    type Accept: Accept;

    // Required method
    fn split(self) -> (Self::OpenClose, Self::Accept);
}
Expand description

A muxado session.

Can be used directly to open and accept streams, or split into dedicated open/accept parts.

Required Associated Types§

source

type OpenClose: OpenClose

The open half of the session.

source

type Accept: Accept

The accept half of the session.

Required Methods§

source

fn split(self) -> (Self::OpenClose, Self::Accept)

Split the session into dedicated open/accept components.

Implementors§