[][src]Struct spirit_tokio::handlers::ToFuture

pub struct ToFuture<F>(pub F);

A Transformation to take a resource, turn it into a future and install it.

Trait Implementations

impl<F, Fut, R, II, SF> Transformation<R, II, SF> for ToFuture<F> where
    F: FnMut(R, &SF) -> Result<Fut, AnyError>,
    Fut: Future<Output = ()> + 'static, 
[src]

type OutputResource = Fut

The type of resource after the transformation.

type OutputInstaller = FutureInstaller

The type of installer after the transformation. Read more

Auto Trait Implementations

impl<F> RefUnwindSafe for ToFuture<F> where
    F: RefUnwindSafe

impl<F> Send for ToFuture<F> where
    F: Send

impl<F> Sync for ToFuture<F> where
    F: Sync

impl<F> Unpin for ToFuture<F> where
    F: Unpin

impl<F> UnwindSafe for ToFuture<F> where
    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, U> Into<U> for T where
    U: From<T>, 
[src]

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.