Trait TryIntoBody

Source
pub trait TryIntoBody {
    // Required method
    fn try_into_body(self) -> Result<Body, Status>;
}
Expand description

The serializer trait converting replies into hyper bodies.

This is a light abstraction to allow users to be able to stream data across the RPC system which may not fit in memory.

Any types which implement TryAsBody will implement this type.

Required Methods§

Source

fn try_into_body(self) -> Result<Body, Status>

Try convert the reply into a body or return an error status.

Implementors§

Source§

impl TryIntoBody for Body

Source§

impl<T> TryIntoBody for T
where T: TryAsBody,