Enum git_packetline::decode::Stream [−][src]
pub enum Stream<'a> {
Complete {
line: PacketLine<'a>,
bytes_consumed: usize,
},
Incomplete {
bytes_needed: usize,
},
}A utility return type to support incremental parsing of packet lines.
Variants
Indicate a single packet line was parsed completely
Show fields
Fields of Complete
line: PacketLine<'a>The parsed packet line
bytes_consumed: usizeThe amount of bytes consumed from input
A packet line could not yet be parsed to to missing bytes
Show fields
Fields of Incomplete
bytes_needed: usizeThe amount of additional bytes needed for the parsing to complete
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Stream<'a>
impl<'a> Send for Stream<'a>
impl<'a> Sync for Stream<'a>
impl<'a> Unpin for Stream<'a>
impl<'a> UnwindSafe for Stream<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more