Struct distant_core::TransportListener [−][src]
pub struct TransportListener<T> where
T: DataStream, { /* fields omitted */ }
Expand description
Represents a [Stream
] consisting of newly-connected DataStream
instances that
have been wrapped in Transport
Implementations
pub fn initialize<L>(listener: L, ctx: TransportListenerCtx) -> Self where
L: Listener<Output = T> + 'static,
Waits for the next fully-initialized transport for an incoming stream to be available, returning none if no longer accepting new connections
Converts into a stream of transport-wrapped connections