pub type BoxBody = UnsyncBoxBody<Bytes, Status>;
Expand description
A type erased HTTP body used for tonic services.
Aliased Type§
struct BoxBody { /* private fields */ }
Implementations
Source§impl<D, E> UnsyncBoxBody<D, E>
impl<D, E> UnsyncBoxBody<D, E>
Trait Implementations
Source§impl<D, E> Body for UnsyncBoxBody<D, E>where
D: Buf,
impl<D, E> Body for UnsyncBoxBody<D, E>where
D: Buf,
Source§fn poll_frame(
self: Pin<&mut UnsyncBoxBody<D, E>>,
cx: &mut Context<'_>,
) -> Poll<Option<Result<Frame<<UnsyncBoxBody<D, E> as Body>::Data>, <UnsyncBoxBody<D, E> as Body>::Error>>>
fn poll_frame( self: Pin<&mut UnsyncBoxBody<D, E>>, cx: &mut Context<'_>, ) -> Poll<Option<Result<Frame<<UnsyncBoxBody<D, E> as Body>::Data>, <UnsyncBoxBody<D, E> as Body>::Error>>>
Attempt to pull out the next data buffer of this stream.
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§impl<D, E> Debug for UnsyncBoxBody<D, E>
impl<D, E> Debug for UnsyncBoxBody<D, E>
Source§impl<D, E> Default for UnsyncBoxBody<D, E>where
D: Buf + 'static,
impl<D, E> Default for UnsyncBoxBody<D, E>where
D: Buf + 'static,
Source§fn default() -> UnsyncBoxBody<D, E>
fn default() -> UnsyncBoxBody<D, E>
Returns the “default value” for a type. Read more