embedded_svc::ws::server

Trait 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>

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.

Implementations on Foreign Types§

Source§

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

Source§

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,

Source§

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

Source§

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

Implementors§