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

pub trait Server {
    type Handler: Handler + Send;
    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

The type of handlers.

Loading content...

Required methods

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

Called when a new client connects.

Loading content...

Implementors

Loading content...