pub struct Builder<E> { /* private fields */ }
Implementations
sourceimpl<E> Builder<E>where
E: Extractor,
impl<E> Builder<E>where
E: Extractor,
sourcepub fn into_inner(self) -> E
pub fn into_inner(self) -> E
Returns the inner extractor.
pub fn optional<T>(
self
) -> Builder<impl Extractor<Output = (Option<T>,), Error = Never>>where
E: Extractor<Output = (T,)>,
T: 'static,
pub fn fallible<T>(
self
) -> Builder<impl Extractor<Output = (Result<T, E::Error>,), Error = Never>>where
E: Extractor<Output = (T,)>,
T: 'static,
pub fn and<T>(
self,
other: T
) -> Builder<impl Extractor<Output = <E::Output as Combine<T::Output>>::Out, Error = Error>>where
T: Extractor,
E::Output: Combine<T::Output> + Send + 'static,
T::Output: Send + 'static,
pub fn or<T>(
self,
other: T
) -> Builder<impl Extractor<Output = E::Output, Error = Error>>where
T: Extractor<Output = E::Output>,
pub fn map<F>(
self,
f: F
) -> Builder<impl Extractor<Output = (F::Out,), Error = E::Error>>where
F: Func<E::Output> + Clone + Send + Sync + 'static,
pub fn and_then<F, R>(
self,
f: F
) -> Builder<impl Extractor<Output = (R::Item,), Error = Error>>where
F: Func<E::Output, Out = R> + Clone + Send + Sync + 'static,
R: IntoFuture + 'static,
R::Future: Send + 'static,
R::Error: Into<Error>,
Trait Implementations
sourceimpl<E> Extractor for Builder<E>where
E: Extractor,
impl<E> Extractor for Builder<E>where
E: Extractor,
Auto Trait Implementations
impl<E> RefUnwindSafe for Builder<E>where
E: RefUnwindSafe,
impl<E> Send for Builder<E>where
E: Send,
impl<E> Sync for Builder<E>where
E: Sync,
impl<E> Unpin for Builder<E>where
E: Unpin,
impl<E> UnwindSafe for Builder<E>where
E: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more