pub struct FromDecoder<D, U> { /* private fields */ }
Expand description
A decoder which maps the output of another with From::from
.
Trait Implementations§
Source§impl<T, D, U> DecodeHeader<T> for FromDecoder<D, U>where
T: From<U>,
D: DecodeHeader<U>,
impl<T, D, U> DecodeHeader<T> for FromDecoder<D, U>where
T: From<U>,
D: DecodeHeader<U>,
Source§fn decode<'a, I>(runtime: &ConjureRuntime, headers: I) -> Result<T, Error>where
I: IntoIterator<Item = &'a HeaderValue>,
fn decode<'a, I>(runtime: &ConjureRuntime, headers: I) -> Result<T, Error>where
I: IntoIterator<Item = &'a HeaderValue>,
Decodes the value from headers.
Source§impl<T, D, U> DecodeParam<T> for FromDecoder<D, U>where
T: From<U>,
D: DecodeParam<U>,
impl<T, D, U> DecodeParam<T> for FromDecoder<D, U>where
T: From<U>,
D: DecodeParam<U>,
Auto Trait Implementations§
impl<D, U> Freeze for FromDecoder<D, U>
impl<D, U> RefUnwindSafe for FromDecoder<D, U>where
D: RefUnwindSafe,
U: RefUnwindSafe,
impl<D, U> Send for FromDecoder<D, U>
impl<D, U> Sync for FromDecoder<D, U>
impl<D, U> Unpin for FromDecoder<D, U>
impl<D, U> UnwindSafe for FromDecoder<D, U>where
D: UnwindSafe,
U: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more