pub trait Acceptor: ErrorType {
type Sender<'a>: Sender<Error = Self::Error>
where Self: 'a;
type Receiver<'a>: Receiver<Error = Self::Error>
where Self: 'a;
// Required method
async fn accept(
&self,
) -> Result<(Self::Sender<'_>, Self::Receiver<'_>), Self::Error>;
}
Required Associated Types§
type Sender<'a>: Sender<Error = Self::Error> where Self: 'a
type Receiver<'a>: Receiver<Error = Self::Error> where Self: 'a
Required Methods§
Object Safety§
This trait is not object safe.