Trait embedded_svc::ws::server::Acceptor

source ·
pub trait Acceptor: ErrorType {
    type Connection<'a>: Sender<Error = Self::Error> + Receiver<Error = Self::Error>
       where Self: 'a;

    // Required method
    fn accept(&self) -> Result<Self::Connection<'_>, Self::Error>;
}

Required Associated Types§

source

type Connection<'a>: Sender<Error = Self::Error> + Receiver<Error = Self::Error> where Self: 'a

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

§

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

source§

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

source§

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

§

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

source§

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

Implementors§