[][src]Trait thrussh::server::Server

pub trait Server {
    type Handler: Handler + Send;
    pub fn new(&mut self, peer_addr: Option<SocketAddr>) -> Self::Handler;
}

Trait used to create new handlers when clients connect.

Associated Types

type Handler: Handler + Send[src]

The type of handlers.

Loading content...

Required methods

pub fn new(&mut self, peer_addr: Option<SocketAddr>) -> Self::Handler[src]

Called when a new client connects.

Loading content...

Implementors

Loading content...