Struct tonic::body::BoxBody [−][src]
A type erased http body.
Implementations
impl BoxBody
[src][−]
pub fn new<B>(inner: B) -> Self where
B: Body<Data = Bytes, Error = Status> + Send + Sync + 'static,
[src][−]
B: Body<Data = Bytes, Error = Status> + Send + Sync + 'static,
Create a new BoxBody
mapping item and error to the default types.
pub fn map_from<B>(inner: B) -> Self where
B: Body + Send + Sync + 'static,
B::Error: Into<Box<dyn Error + Send + Sync>>,
[src][−]
B: Body + Send + Sync + 'static,
B::Error: Into<Box<dyn Error + Send + Sync>>,
Create a new BoxBody
mapping item and error to the default types.
pub fn empty() -> Self
[src][−]
Create a new BoxBody
that is empty.
Trait Implementations
impl Body for BoxBody
[src][+]
impl Debug for BoxBody
[src][+]
impl GrpcService<BoxBody> for Channel
[src][+]
Auto Trait Implementations
impl !RefUnwindSafe for BoxBody
impl Send for BoxBody
impl Sync for BoxBody
impl Unpin for BoxBody
impl !UnwindSafe for BoxBody
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Body for T where
T: Body + Send + Sync + 'static,
<T as Body>::Error: Into<Box<dyn Error + 'static + Send + Sync, Global>>,
[src][+]
T: Body + Send + Sync + 'static,
<T as Body>::Error: Into<Box<dyn Error + 'static + Send + Sync, Global>>,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> Pointable for T
[src][+]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,