Enum hyper_simple_server::Accepter[][src]

pub enum Accepter {
    TcpListener(Arc<TcpListener>),
    RustTlsTcpListener(Arc<TlsAcceptor>, Arc<TcpListener>),
    NativeTlsTcpListener(Arc<TlsAcceptor>, Arc<TcpListener>),
}

Variants

TcpListener(Arc<TcpListener>)
RustTlsTcpListener(Arc<TlsAcceptor>, Arc<TcpListener>)
NativeTlsTcpListener(Arc<TlsAcceptor>, Arc<TcpListener>)

Implementations

impl Accepter[src]

pub fn poll(
    self: Pin<&mut Self>,
    _context: &mut Context<'_>
) -> Poll<Option<ServerResult<Connection>>>
[src]

impl Accepter[src]

pub fn new(_endpoint: &Endpoint) -> ServerResult<Self>[src]

Trait Implementations

impl Accept for Accepter[src]

type Conn = Connection

The connection type that can be accepted.

type Error = ServerError

The error type that can occur when accepting a connection.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.