pub trait TcpAccept {
type Error: Error;
type Connection<'m>: Read<Error = Self::Error> + Write<Error = Self::Error>
where Self: 'm;
// Required method
async fn accept(&self) -> Result<Self::Connection<'_>, Self::Error>;
}
Required Associated Types§
type Error: Error
type Connection<'m>: Read<Error = Self::Error> + Write<Error = Self::Error> where Self: 'm
Required Methods§
async fn accept(&self) -> Result<Self::Connection<'_>, Self::Error>
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.