pub enum GitFetchRecord<'a> {
Ref {
flags: u8,
status: u8,
old: GitOid,
new: GitOid,
name: &'a str,
detail: &'a str,
},
}Expand description
One decoded record from a GIT_FETCH response payload.
Variants§
Ref
FETCH_REF 0x01: [kind:1][flags:1][status:1][old:32][new:32][name_len:2][name:N][detail_len:2][detail:N]
One per ref the remote answered for. status is the unified table,
so “did I actually get these commits” is answerable from the reply
rather than needing a resolve per commit afterwards — a remote can
refuse one refspec of several and still exit zero.
Trait Implementations§
Source§impl<'a> Clone for GitFetchRecord<'a>
impl<'a> Clone for GitFetchRecord<'a>
Source§fn clone(&self) -> GitFetchRecord<'a>
fn clone(&self) -> GitFetchRecord<'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 GitFetchRecord<'a>
impl<'a> Debug for GitFetchRecord<'a>
impl<'a> Eq for GitFetchRecord<'a>
Source§impl<'a> PartialEq for GitFetchRecord<'a>
impl<'a> PartialEq for GitFetchRecord<'a>
impl<'a> StructuralPartialEq for GitFetchRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for GitFetchRecord<'a>
impl<'a> RefUnwindSafe for GitFetchRecord<'a>
impl<'a> Send for GitFetchRecord<'a>
impl<'a> Sync for GitFetchRecord<'a>
impl<'a> Unpin for GitFetchRecord<'a>
impl<'a> UnsafeUnpin for GitFetchRecord<'a>
impl<'a> UnwindSafe for GitFetchRecord<'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