pub trait Specifier: Debug {
// Required methods
fn construct(&self, p: ConstructParams) -> PeerConstructor;
fn is_multiconnect(&self) -> bool;
fn uses_global_state(&self) -> bool;
}
Expand description
A parsed command line argument.
For example, ws-listen:tcp-l:127.0.0.1:8080
gets parsed into
a WsUpgrade(TcpListen(SocketAddr))
.
Required Methods§
sourcefn construct(&self, p: ConstructParams) -> PeerConstructor
fn construct(&self, p: ConstructParams) -> PeerConstructor
Apply the specifier for constructing a “socket” or other connecting device.