[][src]Trait tower_grpc::Body

pub trait Body: Sealed {
    type Data: Buf;
    type Error: Into<Box<dyn Error + Send + Sync>>;
    fn is_end_stream(&self) -> bool;
fn poll_data(&mut self) -> Poll<Option<Self::Data>, Self::Error>;
fn poll_trailers(&mut self) -> Poll<Option<HeaderMap>, Self::Error>; }

A "trait alias" for tower_http_service::Body with bounds required by tower-grpc.

Not to be implemented directly, but instead useful for reducing bounds boilerplate.

Associated Types

type Data: Buf

type Error: Into<Box<dyn Error + Send + Sync>>

Loading content...

Required methods

fn is_end_stream(&self) -> bool

fn poll_data(&mut self) -> Poll<Option<Self::Data>, Self::Error>

fn poll_trailers(&mut self) -> Poll<Option<HeaderMap>, Self::Error>

Loading content...

Implementors

impl<T> Body for T where
    T: HttpBody,
    T::Error: Into<Box<dyn Error + Send + Sync>>, 
[src]

type Data = T::Data

type Error = T::Error

Loading content...