encode_into

Function encode_into 

Source
pub fn encode_into(
    frame: &Frame,
    buf: &mut BytesMut,
) -> Result<(), ProtocolError>
Expand description

Encode a frame into an existing buffer.

ยงErrors

Returns an error if the frame is too large or encoding fails.