[][src]Struct tower_grpc::BoxBody

pub struct BoxBody { /* fields omitted */ }

Dynamic Send body object.

Methods

impl BoxBody[src]

pub fn new(
    inner: Box<dyn Body<Data = <Bytes as IntoBuf>::Buf, Error = Status> + Send>
) -> Self
[src]

Create a new BoxBody backed by inner.

pub fn map_from<B>(inner: B) -> Self where
    B: Body + Send + 'static,
    B::Data: Into<Bytes>, 
[src]

Create a new BoxBody mapping item and error to the default types.

Trait Implementations

impl<T, U> Encodable<BoxBody> for T where
    T: Stream<Item = U, Error = Status> + Send + 'static,
    U: Message + 'static, 
[src]

impl Debug for BoxBody[src]

impl Body for BoxBody[src]

type Data = <Bytes as IntoBuf>::Buf

Values yielded by the Body.

type Error = Status

The error type this BufStream might generate.

fn size_hint(&self) -> SizeHint[src]

Returns the bounds on the remaining length of the stream. Read more

Auto Trait Implementations

impl Send for BoxBody

impl !Sync for BoxBody

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Body for T where
    T: BufStream
[src]

type Data = <T as BufStream>::Item

Values yielded by the Body.

type Error = <T as BufStream>::Error

The error type this BufStream might generate.

impl<T, U> Encodable<BoxBody> for T where
    T: Stream<Item = U, Error = Status> + Send + 'static,
    U: Message + 'static, 
[src]

impl<T, U> Encodable<BoxBody> for T where
    T: Stream<Item = U, Error = Status> + Send + 'static,
    U: Message + 'static, 
[src]