Struct slip_codec::SlipEncoder[][src]

pub struct SlipEncoder { /* fields omitted */ }
Expand description

SLIP encoder context

Implementations

Creates a new encoder context

Encodes the given buffer in a SLIP frame and forwards it to the sink.

Arguments
  • buf - input data buffer for encoding
  • sink - output object implementing the std::io::Write trait

Returns the number of bytes written to the sink.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.