Crate gix_packetline_blocking
source ·Expand description
Read and write the git packet line wire format without copying it.
For reading the packet line format use the StreamingPeekableIter
, and for writing the Writer
.
§Feature Flags
By default, all IO related capabilities will be missing unless one of the following is chosen.
blocking-io
(enabled by default) — If set, all IO will become blocking. The same types will be used preventing side-by-side usage of blocking and non-blocking IO.async-io
— DO NOT USE, use insteadgix-packetline
directly.
§Other
serde
— Data structures implementserde::Serialize
andserde::Deserialize
.
Modules§
- Utilities to help decoding packet lines
- Utilities to encode different kinds of packet lines
Structs§
- A packet line representing an Error in a side-band channel.
- A packet line representing text, which may include a trailing newline.
- Writer
blocking-io
and (async-io
orblocking-io
)An implementor ofWrite
which passes all input to an innerWrite
in packet line data encoding, one line perwrite(…)
call or as many lines as it takes if the data doesn’t fit into the maximum allowed line length.
Enums§
- A band in a side-band channel.
- One of three side-band types allowing to multiplex information over a single connection.
- A borrowed packet line as it refers to a slice of data by reference.
Functions§
- Decode an entire packet line from data or fail.