pub trait NetSession: NetStream + SplitIo {
    type Inner: NetSession;
    type Connection: NetConnection;
    type Artifact: Display;

    fn run_handshake(&mut self) -> Result<()>;
    fn artifact(&self) -> Option<Self::Artifact>;
    fn as_connection(&self) -> &Self::Connection;
    fn as_connection_mut(&mut self) -> &mut Self::Connection;
    fn disconnect(self) -> Result<()>;

    fn is_established(&self) -> bool { ... }
    fn display(&self) -> String { ... }
}

Required Associated Types§

Inner session type

Underlying connection

Required Methods§

Provided Methods§

Implementations on Foreign Types§

Implementors§