pub enum GitDiscoverRecord<'a> {
Repo {
flags: u8,
workdir: &'a str,
gitdir: &'a str,
},
Cursor {
after: &'a str,
pos: u64,
},
}Expand description
One decoded record from a GIT_DISCOVER response payload.
Variants§
Repo
REPO_FOUND 0x01: [kind:1][flags:1][workdir_len:2][workdir:N][gitdir_len:2][gitdir:N]
Deduped by canonical gitdir — the identity GIT_OPEN reports and
the one that survives several paths resolving to one repository.
Cursor
Trait Implementations§
Source§impl<'a> Clone for GitDiscoverRecord<'a>
impl<'a> Clone for GitDiscoverRecord<'a>
Source§fn clone(&self) -> GitDiscoverRecord<'a>
fn clone(&self) -> GitDiscoverRecord<'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 GitDiscoverRecord<'a>
impl<'a> Debug for GitDiscoverRecord<'a>
impl<'a> Eq for GitDiscoverRecord<'a>
Source§impl<'a> PartialEq for GitDiscoverRecord<'a>
impl<'a> PartialEq for GitDiscoverRecord<'a>
impl<'a> StructuralPartialEq for GitDiscoverRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for GitDiscoverRecord<'a>
impl<'a> RefUnwindSafe for GitDiscoverRecord<'a>
impl<'a> Send for GitDiscoverRecord<'a>
impl<'a> Sync for GitDiscoverRecord<'a>
impl<'a> Unpin for GitDiscoverRecord<'a>
impl<'a> UnsafeUnpin for GitDiscoverRecord<'a>
impl<'a> UnwindSafe for GitDiscoverRecord<'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