Function framed::encode_to_writer
[−]
[src]
pub fn encode_to_writer<W: Write>(p: &Payload, w: &mut W) -> Result<usize>
Encode the supplied payload data as a frame and write it to the
supplied Write
.
This function will not call flush
on the writer; the caller do
so if this is required.
Returns the length of the frame it has written.