[−][src]Struct spirit_tokio::handlers::ToFuture
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]
F: FnMut(R, &SF) -> Result<Fut, AnyError>,
Fut: Future<Output = ()> + 'static,
type OutputResource = Fut
The type of resource after the transformation.
type OutputInstaller = FutureInstaller
The type of installer after the transformation. Read more
fn installer(&mut self, _: II, _: &str) -> FutureInstaller[src]
fn transform(&mut self, r: R, cfg: &SF, name: &str) -> Result<Fut, AnyError>[src]
Auto Trait Implementations
impl<F> RefUnwindSafe for ToFuture<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for ToFuture<F> where
F: Send,
F: Send,
impl<F> Sync for ToFuture<F> where
F: Sync,
F: Sync,
impl<F> Unpin for ToFuture<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for ToFuture<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> IntoResult<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,