Struct Frame

#[must_use = "futures don't do anything unless polled"]
pub struct Frame<'a, T: ?Sized>(/* private field */);

Future that resolves to the next frame from a Body.

Trait Implementations

impl<'a, T: Debug + ?Sized> Debug for Frame<'a, T>

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

impl<T: Body + Unpin + ?Sized> Future for Frame<'_, T>

type Output = Option<Result<Frame<<T as Body>::Data>, <T as Body>::Error>>;
fn poll(self: Pin<&mut Self>, ctx: &mut Context<'_>) -> Poll<Self::Output>

Auto Trait Implementations

impl<'a, T> !UnwindSafe for Frame<'a, T>

impl<'a, T> Freeze for Frame<'a, T> where &'a mut T: Freeze, T: ?Sized,

impl<'a, T> RefUnwindSafe for Frame<'a, T> where &'a mut T: RefUnwindSafe, T: ?Sized,

impl<'a, T> Send for Frame<'a, T> where &'a mut T: Send, T: ?Sized,

impl<'a, T> Sync for Frame<'a, T> where &'a mut T: Sync, T: ?Sized,

impl<'a, T> Unpin for Frame<'a, T> where &'a mut T: Unpin, T: ?Sized,

impl<'a, T> UnsafeUnpin for Frame<'a, T> where &'a mut T: UnsafeUnpin, T: ?Sized,

Blanket Implementations

impl<F> IntoFuture for Frame<'a, T> where F: Future,

type Output = <F as Future>::Output;
type IntoFuture = F;
fn into_future(self) -> <F as IntoFuture>::IntoFuture

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

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Frame<'a, T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Frame<'a, T> where T: ?Sized,

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

impl<T> From<T> for Frame<'a, T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for Frame<'a, T> 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 Frame<'a, T> where U: Into<T>,

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

impl<T, U> TryInto<U> for Frame<'a, T> where U: TryFrom<T>,

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