pub struct Encode<T, U> { /* private fields */ }Expand description
Encodes gRPC message types
Trait Implementations§
Source§impl<T, U> Body for Encode<T, U>
impl<T, U> Body for Encode<T, U>
Source§fn is_end_stream(&self) -> bool
fn is_end_stream(&self) -> bool
Returns
true when the end of stream has been reached. Read moreSource§fn poll_data(&mut self) -> Poll<Option<Self::Data>, Status>
fn poll_data(&mut self) -> Poll<Option<Self::Data>, Status>
Attempt to pull out the next data buffer of this stream.
Auto Trait Implementations§
impl<T, U> !Freeze for Encode<T, U>
impl<T, U> RefUnwindSafe for Encode<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for Encode<T, U>
impl<T, U> Sync for Encode<T, U>
impl<T, U> Unpin for Encode<T, U>
impl<T, U> UnwindSafe for Encode<T, U>where
T: UnwindSafe,
U: UnwindSafe,
Blanket Implementations§
Source§impl<T> Body for T
impl<T> Body for T
type Data = <T as Body>::Data
type Error = <T as Body>::Error
fn is_end_stream(&self) -> bool
fn poll_data( &mut self, ) -> Result<Async<Option<<T as Body>::Data>>, <T as Body>::Error>
fn poll_trailers( &mut self, ) -> Result<Async<Option<HeaderMap>>, <T as Body>::Error>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more