Trait embedded_svc::ws::asynch::server::Acceptor

source ·
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§

source

type Sender<'a>: Sender<Error = Self::Error> where Self: 'a

source

type Receiver<'a>: Receiver<Error = Self::Error> where Self: 'a

Required Methods§

source

async fn accept( &self, ) -> Result<(Self::Sender<'_>, Self::Receiver<'_>), Self::Error>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<A> Acceptor for &A
where A: Acceptor,

§

type Sender<'a> = <A as Acceptor>::Sender<'a> where Self: 'a

§

type Receiver<'a> = <A as Acceptor>::Receiver<'a> where Self: 'a

source§

async fn accept( &self, ) -> Result<(Self::Sender<'_>, Self::Receiver<'_>), Self::Error>

source§

impl<A> Acceptor for &mut A
where A: Acceptor,

§

type Sender<'a> = <A as Acceptor>::Sender<'a> where Self: 'a

§

type Receiver<'a> = <A as Acceptor>::Receiver<'a> where Self: 'a

source§

async fn accept( &self, ) -> Result<(Self::Sender<'_>, Self::Receiver<'_>), Self::Error>

Implementors§