Struct Full

struct Full<D> { ... }

A body that consists of a single chunk.

Implementations

impl<D> Full<D>

fn new(data: D) -> Self

Create a new Full.

impl<'__pin, D> Unpin for Full<D>

impl<D> Body for Full<D>

fn poll_frame(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Option<Result<Frame<D>, <Self as >::Error>>>
fn is_end_stream(self: &Self) -> bool
fn size_hint(self: &Self) -> SizeHint

impl<D> Default for Full<D>

fn default() -> Self

Create an empty Full.

impl<D> Freeze for Full<D>

impl<D> From for Full<D>

fn from(bytes: Bytes) -> Self

impl<D> From for Full<D>

fn from(slice: &'static [u8]) -> Self

impl<D> From for Full<D>

fn from(s: String) -> Self

impl<D> From for Full<D>

fn from(vec: Vec<u8>) -> Self

impl<D> From for Full<D>

fn from(slice: &'static str) -> Self

impl<D> RefUnwindSafe for Full<D>

impl<D> Send for Full<D>

impl<D> Sync for Full<D>

impl<D> UnsafeUnpin for Full<D>

impl<D> UnwindSafe for Full<D>

impl<D, B> From for Full<D>

fn from(cow: Cow<'static, B>) -> Self

impl<D: $crate::clone::Clone> Clone for Full<D>

fn clone(self: &Self) -> Full<D>

impl<D: $crate::fmt::Debug> Debug for Full<D>

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

impl<D: $crate::marker::Copy> Copy for Full<D>

impl<T> Any for Full<D>

fn type_id(self: &Self) -> TypeId

impl<T> BodyExt for Full<D>

impl<T> Borrow for Full<D>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Full<D>

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

impl<T> CloneToUninit for Full<D>

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

impl<T> From for Full<D>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Full<D>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Full<D>

fn into(self: 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 for Full<D>

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

impl<T, U> TryInto for Full<D>

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