Trait viz_core::handler::HandlerExt
source · [−]pub trait HandlerExt<I>: Handler<I> {
fn boxed(self) -> BoxHandler<I, Self::Output>
where
Self: Sized,
{ ... }
fn before<F>(self, f: F) -> Before<Self, F>
where
Self: Sized,
{ ... }
fn after<F>(self, f: F) -> After<Self, F>
where
Self: Sized,
{ ... }
fn around<F>(self, f: F) -> Around<Self, F>
where
Self: Sized,
{ ... }
fn map<F>(self, f: F) -> Map<Self, F>
where
Self: Sized,
{ ... }
fn and_then<F>(self, f: F) -> AndThen<Self, F>
where
Self: Sized,
{ ... }
fn map_err<F>(self, f: F) -> MapErr<Self, F>
where
Self: Sized,
{ ... }
fn or_else<F>(self, f: F) -> OrElse<Self, F>
where
Self: Sized,
{ ... }
fn catch_error<F, R, E>(self, f: F) -> CatchError<Self, F, R, E>
where
Self: Sized,
{ ... }
fn catch_unwind<F>(self, f: F) -> CatchUnwind<Self, F>
where
Self: Sized,
{ ... }
fn with<T>(self, t: T) -> T::Output
where
T: Transform<Self>,
Self: Sized,
{ ... }
fn with_fn<F>(self, f: F) -> Self
where
F: Fn(Self) -> Self,
Self: Sized,
{ ... }
}
Expand description
An extension trait for Handler
s that provides a variety of convenient
combinator functions.