Skip to main content

Hyperium1OutgoingBodyCopier

Struct Hyperium1OutgoingBodyCopier 

Source
pub struct Hyperium1OutgoingBodyCopier<HttpBody, Registry>
where HttpBody: Body, Registry: PollableRegistry,
{ /* private fields */ }

Implementations§

Source§

impl<HttpBody, Registry> Hyperium1OutgoingBodyCopier<HttpBody, Registry>
where HttpBody: Body, Registry: PollableRegistry,

Source

pub fn new(src: HttpBody, dest: OutgoingBody<Registry>) -> Result<Self, Error>

Trait Implementations§

Source§

impl<HttpBody, Registry> OutgoingBodyCopier for Hyperium1OutgoingBodyCopier<HttpBody, Registry>
where HttpBody: Body + Unpin, Error: From<HttpBody::Error>, Registry: PollableRegistry,

Source§

fn poll_copy( &mut self, cx: &mut Context<'_>, ) -> Poll<Option<Result<Copied, Error>>>

Source§

fn copy_all(self) -> CopyAllFuture<Self>
where Self: Sized + Unpin,

Auto Trait Implementations§

§

impl<HttpBody, Registry> !Freeze for Hyperium1OutgoingBodyCopier<HttpBody, Registry>

§

impl<HttpBody, Registry> RefUnwindSafe for Hyperium1OutgoingBodyCopier<HttpBody, Registry>
where HttpBody: RefUnwindSafe, <HttpBody as Body>::Data: RefUnwindSafe, Registry: RefUnwindSafe, <Registry as PollableRegistry>::RegisteredPollable: RefUnwindSafe,

§

impl<HttpBody, Registry> Send for Hyperium1OutgoingBodyCopier<HttpBody, Registry>
where HttpBody: Send, <HttpBody as Body>::Data: Send, Registry: Send, <Registry as PollableRegistry>::RegisteredPollable: Send,

§

impl<HttpBody, Registry> Sync for Hyperium1OutgoingBodyCopier<HttpBody, Registry>
where HttpBody: Sync, <HttpBody as Body>::Data: Sync, Registry: Sync, <Registry as PollableRegistry>::RegisteredPollable: Sync,

§

impl<HttpBody, Registry> Unpin for Hyperium1OutgoingBodyCopier<HttpBody, Registry>
where HttpBody: Unpin, <HttpBody as Body>::Data: Unpin,

§

impl<HttpBody, Registry> UnsafeUnpin for Hyperium1OutgoingBodyCopier<HttpBody, Registry>
where HttpBody: UnsafeUnpin, <HttpBody as Body>::Data: UnsafeUnpin, Registry: UnsafeUnpin, <Registry as PollableRegistry>::RegisteredPollable: UnsafeUnpin,

§

impl<HttpBody, Registry> UnwindSafe for Hyperium1OutgoingBodyCopier<HttpBody, Registry>
where HttpBody: UnwindSafe, <HttpBody as Body>::Data: UnwindSafe, Registry: UnwindSafe, <Registry as PollableRegistry>::RegisteredPollable: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.