[][src]Struct client::pb::server::test_service::ResponseBody

pub struct ResponseBody<T> where
    T: TestService
{ /* fields omitted */ }

Trait Implementations

impl<T> Body for ResponseBody<T> where
    T: TestService
[src]

type Data = <BoxBody as Body>::Data

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<T> Unpin for ResponseBody<T> where
    <T as TestService>::FullDuplexCallStream: Stream<Error = Status> + Unpin,
    <T as TestService>::HalfDuplexCallStream: Stream<Error = Status> + Unpin,
    <T as TestService>::StreamingOutputCallStream: Stream<Error = Status> + Unpin

impl<T> Sync for ResponseBody<T> where
    <T as TestService>::FullDuplexCallStream: Stream<Error = Status> + Sync,
    <T as TestService>::HalfDuplexCallStream: Stream<Error = Status> + Sync,
    <T as TestService>::StreamingOutputCallStream: Stream<Error = Status> + Sync

impl<T> Send for ResponseBody<T> where
    <T as TestService>::FullDuplexCallStream: Send + Stream<Error = Status>,
    <T as TestService>::HalfDuplexCallStream: Send + Stream<Error = Status>,
    <T as TestService>::StreamingOutputCallStream: Send + Stream<Error = Status>, 

impl<T> UnwindSafe for ResponseBody<T> where
    <T as TestService>::FullDuplexCallStream: Stream<Error = Status> + UnwindSafe,
    <T as TestService>::HalfDuplexCallStream: Stream<Error = Status> + UnwindSafe,
    <T as TestService>::StreamingOutputCallStream: Stream<Error = Status> + UnwindSafe

impl<T> RefUnwindSafe for ResponseBody<T> where
    <T as TestService>::FullDuplexCallStream: RefUnwindSafe + Stream<Error = Status>,
    <T as TestService>::HalfDuplexCallStream: RefUnwindSafe + Stream<Error = Status>,
    <T as TestService>::StreamingOutputCallStream: RefUnwindSafe + Stream<Error = Status>, 

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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: Body,
    <T as Body>::Error: Into<Box<dyn Error + 'static + Send + Sync>>, 
[src]

type Data = <T as Body>::Data

type Error = <T as Body>::Error

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> BodyExt for T where
    T: Body
[src]

fn into_buf_stream(self) -> IntoBufStream<Self>[src]

Wrap the Body so that it implements tokio_buf::BufStream directly.