Crate git_packetline[][src]

Read and write the git packet line wire format without copying it.

For reading the packet line format use the Provider, and for writing the Writer.

Re-exports

pub use borrowed::Borrowed as PacketLine;

Modules

borrowed
decode

Utilities to help decoding packet lines

encode

Utilities to encode different kinds of packet lines

provider
write

Structs

Provider

Read pack lines one after another, without consuming more than needed from the underlying Read. Flush lines cause the reader to stop producing lines forever, leaving Read at the start of whatever comes next.

Writer

An implementor of Write which passes all input to an inner Write in packet line data encoding, one line per write(…) call or as many lines as it takes if the data doesn’t fit into the maximum allowed line length.

Enums

Channel

One of three side-band types allowing to multiplex information over a single connection.

Functions

decode

Decode an entire packet line from data or fail.