Struct WithTrailers
pub struct WithTrailers<T, F> { /* private fields */ }
Adds trailers to a body.
See BodyExt::with_trailers for more details.
Trait Implementations
impl<'__pin, T, F> Unpin for WithTrailers<T, F>
where
PinnedFieldsOf<__Origin<'__pin, T, F>>: Unpin,
impl<T, F> Body for WithTrailers<T, F>
where
T: Body,
F: Future<Output = Option<Result<HeaderMap, T::Error>>>,
type Data = <T as Body>::Data;type Error = <T as Body>::Error;fn poll_frame(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Result<Frame<Self::Data>, Self::Error>>>fn size_hint(&self) -> SizeHint
Auto Trait Implementations
impl<T, F> Freeze for WithTrailers<T, F>
where
State<T, F>: Freeze,
impl<T, F> RefUnwindSafe for WithTrailers<T, F>
where
State<T, F>: RefUnwindSafe,
impl<T, F> Send for WithTrailers<T, F>
where
State<T, F>: Send,
impl<T, F> Sync for WithTrailers<T, F>
where
State<T, F>: Sync,
impl<T, F> UnsafeUnpin for WithTrailers<T, F>
where
State<T, F>: UnsafeUnpin,
impl<T, F> UnwindSafe for WithTrailers<T, F>
where
State<T, F>: UnwindSafe,
Blanket Implementations
impl<T> Any for WithTrailers<T, F>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> BodyExt for WithTrailers<T, F>
where
T: Body + ?Sized,
impl<T> Borrow<T> for WithTrailers<T, F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for WithTrailers<T, F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for WithTrailers<T, F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for WithTrailers<T, F>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for WithTrailers<T, F>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for WithTrailers<T, F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>