pub trait Listener {
type Conn: AsyncRead + AsyncWrite + Send + 'static;
type Accept<'a>: Future<Output = Option<(ConnId<'static>, Self::Conn)>> + 'a
where Self: 'a;
// Required method
fn accept(&mut self) -> Self::Accept<'_>;
}Expand description
Rproxy listener should implement this trait.
Required Associated Types§
Sourcetype Conn: AsyncRead + AsyncWrite + Send + 'static
type Conn: AsyncRead + AsyncWrite + Send + 'static
Inbound connection type.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.