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§
Sourcefn try_into_body(self) -> Result<Body, Status>
fn try_into_body(self) -> Result<Body, Status>
Try convert the reply into a body or return an error status.