Struct ResponseAxumBodyLayer

pub struct ResponseAxumBodyLayer;

Layer that transforms the Response body to crate::body::Body.

This is useful when another layer maps the body to some other type to convert it back.

Trait Implementations

impl Clone for ResponseAxumBodyLayer

fn clone(&self) -> ResponseAxumBodyLayer

impl Debug for ResponseAxumBodyLayer

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<S> Layer<S> for ResponseAxumBodyLayer

type Service = ResponseAxumBody<S>;
fn layer(&self, inner: S) -> Self::Service

Auto Trait Implementations

impl Freeze for ResponseAxumBodyLayer

impl RefUnwindSafe for ResponseAxumBodyLayer

impl Send for ResponseAxumBodyLayer

impl Sync for ResponseAxumBodyLayer

impl Unpin for ResponseAxumBodyLayer

impl UnsafeUnpin for ResponseAxumBodyLayer

impl UnwindSafe for ResponseAxumBodyLayer

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for ResponseAxumBodyLayer where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for ResponseAxumBodyLayer where ST: ?Sized, DT: ?Sized,

impl<T> Any for ResponseAxumBodyLayer where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ResponseAxumBodyLayer where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ResponseAxumBodyLayer where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for ResponseAxumBodyLayer where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for ResponseAxumBodyLayer

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FromRef<T> for ResponseAxumBodyLayer where T: Clone,

fn from_ref(input: &T) -> T

impl<T> Instrument for ResponseAxumBodyLayer

impl<T> Read<Exclusive, BecauseExclusive> for ResponseAxumBodyLayer where T: ?Sized,

impl<T> Same for ResponseAxumBodyLayer

type Output = T;

impl<T> ToOwned for ResponseAxumBodyLayer where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> WithSubscriber for ResponseAxumBodyLayer

impl<T, U> Into<U> for ResponseAxumBodyLayer where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for ResponseAxumBodyLayer where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for ResponseAxumBodyLayer where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

impl<V, T> VZip<V> for ResponseAxumBodyLayer where V: MultiLane<T>,

fn vzip(self) -> V