Trait netservices::session::NetSession
source · 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§
sourcetype Inner: NetSession
type Inner: NetSession
Inner session type
sourcetype Connection: NetConnection
type Connection: NetConnection
Underlying connection