Struct ResponseAxumBody

pub struct ResponseAxumBody<S>(/* private field */);

Service generated by ResponseAxumBodyLayer.

Trait Implementations

impl<S, Request, ResBody> Service<Request> for ResponseAxumBody<S> where S: Service<Request, Response = Response<ResBody>>, ResBody: HttpBody<Data = Bytes> + Send + 'static, <ResBody as HttpBody>::Error: Error + Send + Sync,

type Response = Response<Body>;
type Error = <S as Service<Request>>::Error;
type Future = ResponseAxumBodyFuture<<S as Service<Request>>::Future>;
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn call(&mut self, req: Request) -> Self::Future

impl<S: Clone> Clone for ResponseAxumBody<S>

fn clone(&self) -> ResponseAxumBody<S>

impl<S: Debug> Debug for ResponseAxumBody<S>

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

Auto Trait Implementations

impl<S> Freeze for ResponseAxumBody<S> where S: Freeze,

impl<S> RefUnwindSafe for ResponseAxumBody<S> where S: RefUnwindSafe,

impl<S> Send for ResponseAxumBody<S> where S: Send,

impl<S> Sync for ResponseAxumBody<S> where S: Sync,

impl<S> Unpin for ResponseAxumBody<S> where S: Unpin,

impl<S> UnsafeUnpin for ResponseAxumBody<S> where S: UnsafeUnpin,

impl<S> UnwindSafe for ResponseAxumBody<S> where S: UnwindSafe,

Blanket Implementations

impl<S, R> ServiceExt<R> for ResponseAxumBody<S> where S: Service<R>,

fn into_make_service(self) -> IntoMakeService<S>
fn into_make_service_with_connect_info<C>(self) -> IntoMakeServiceWithConnectInfo<S, C>

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

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

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

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ResponseAxumBody<S> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ResponseAxumBody<S> where T: ?Sized,

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

impl<T> CloneToUninit for ResponseAxumBody<S> where T: Clone,

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

impl<T> From<T> for ResponseAxumBody<S>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FromRef<T> for ResponseAxumBody<S> where T: Clone,

fn from_ref(input: &T) -> T

impl<T> Instrument for ResponseAxumBody<S>

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

impl<T> Same for ResponseAxumBody<S>

type Output = T;

impl<T> ToOwned for ResponseAxumBody<S> where T: Clone,

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

impl<T> WithSubscriber for ResponseAxumBody<S>

impl<T, Request> ServiceExt<Request> for ResponseAxumBody<S> where T: Service<Request> + ?Sized,

impl<T, U> Into<U> for ResponseAxumBody<S> 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 ResponseAxumBody<S> 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 ResponseAxumBody<S> 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 ResponseAxumBody<S> where V: MultiLane<T>,

fn vzip(self) -> V