[][src]Struct spirit_tokio::handlers::Acceptor

pub struct Acceptor<A, F, C> { /* fields omitted */ }

A plumbing type for PerConnection.

Trait Implementations

impl<A, F, C, Fut> Future for Acceptor<A, F, C> where
    A: Accept,
    F: FnMut(A::Connection, &C) -> Fut,
    Fut: Future<Output = ()> + Send + 'static,
    Self: Unpin
[src]

type Output = ()

The type of value produced on completion.

Auto Trait Implementations

impl<A, F, C> RefUnwindSafe for Acceptor<A, F, C> where
    A: RefUnwindSafe,
    C: RefUnwindSafe,
    F: RefUnwindSafe

impl<A, F, C> Send for Acceptor<A, F, C> where
    A: Send,
    C: Send,
    F: Send

impl<A, F, C> Sync for Acceptor<A, F, C> where
    A: Sync,
    C: Sync,
    F: Sync

impl<A, F, C> Unpin for Acceptor<A, F, C> where
    A: Unpin,
    C: Unpin,
    F: Unpin

impl<A, F, C> UnwindSafe for Acceptor<A, F, C> where
    A: UnwindSafe,
    C: UnwindSafe,
    F: UnwindSafe

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> FutureExt for T where
    T: Future + ?Sized
[src]

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

impl<F> IntoFuture for F where
    F: Future
[src]

type Output = <F as Future>::Output

🔬 This is a nightly-only experimental API. (into_future)

The output that the future will produce on completion.

type Future = F

🔬 This is a nightly-only experimental API. (into_future)

Which kind of future are we turning this into?

impl<T> IntoResult<T> for 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.