Enum git_packetline::decode::Stream [−][src]
pub enum Stream<'a> {
Complete {
line: PacketLineRef<'a>,
bytes_consumed: usize,
},
Incomplete {
bytes_needed: usize,
},
}
Expand description
A utility return type to support incremental parsing of packet lines.
Variants
Indicate a single packet line was parsed completely
Fields of Complete
line: PacketLineRef<'a>
The parsed packet line
bytes_consumed: usize
The amount of bytes consumed from input
A packet line could not yet be parsed to to missing bytes
Fields of Incomplete
bytes_needed: usize
The amount of additional bytes needed for the parsing to complete
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Stream<'a>
impl<'a> UnwindSafe for Stream<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more