Struct slip_codec::SlipEncoder [−][src]
pub struct SlipEncoder { /* fields omitted */ }
Expand description
SLIP encoder context
Implementations
Encodes the given buffer in a SLIP frame and forwards it to the sink.
Arguments
buf
- input data buffer for encodingsink
- output object implementing the std::io::Write trait
Returns the number of bytes written to the sink.