pub enum GitIndexRecord<'a> {
Entry {
stage: u8,
iflags: u8,
mode: u32,
size: u64,
mtime_ns: u64,
oid: GitOid,
path: &'a str,
},
Cursor {
after: &'a str,
pos: u64,
},
}Expand description
One decoded record from a GIT_INDEX response payload.
Variants§
Entry
INDEX_ENTRY 0x04: [kind:1][stage:1][iflags:1][mode:4][size:8][mtime_ns:8][oid:32][path_len:2][path:N] Conflicted paths appear as their stage-1/2/3 entries.
Cursor
CURSOR 0x7F: continue with after as the request’s after.
Trait Implementations§
Source§impl<'a> Clone for GitIndexRecord<'a>
impl<'a> Clone for GitIndexRecord<'a>
Source§fn clone(&self) -> GitIndexRecord<'a>
fn clone(&self) -> GitIndexRecord<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for GitIndexRecord<'a>
impl<'a> Debug for GitIndexRecord<'a>
impl<'a> Eq for GitIndexRecord<'a>
Source§impl<'a> PartialEq for GitIndexRecord<'a>
impl<'a> PartialEq for GitIndexRecord<'a>
impl<'a> StructuralPartialEq for GitIndexRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for GitIndexRecord<'a>
impl<'a> RefUnwindSafe for GitIndexRecord<'a>
impl<'a> Send for GitIndexRecord<'a>
impl<'a> Sync for GitIndexRecord<'a>
impl<'a> Unpin for GitIndexRecord<'a>
impl<'a> UnsafeUnpin for GitIndexRecord<'a>
impl<'a> UnwindSafe for GitIndexRecord<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more