pub enum Fetch<'a> {
Only {
src: &'a BStr,
},
Exclude {
src: &'a BStr,
},
AndUpdate {
src: &'a BStr,
dst: &'a BStr,
allow_non_fast_forward: bool,
},
}
Expand description
Any source can either be a ref name (full or partial) or a fully spelled out hex-sha for an object, on the remote side.
Destinations can only be a partial or full ref-names on the local side.
Variants§
Only
Fetch a ref or refs, without updating local branches.
Fields
Exclude
Exclude a single ref.
Fields
AndUpdate
Fetch from src
and update the corresponding destination branches in dst
accordingly.
Trait Implementations§
source§impl<'a> Ord for Fetch<'a>
impl<'a> Ord for Fetch<'a>
source§impl<'a> PartialOrd for Fetch<'a>
impl<'a> PartialOrd for Fetch<'a>
impl<'a> Copy for Fetch<'a>
impl<'a> Eq for Fetch<'a>
impl<'a> StructuralPartialEq for Fetch<'a>
Auto Trait Implementations§
impl<'a> Freeze for Fetch<'a>
impl<'a> RefUnwindSafe for Fetch<'a>
impl<'a> Send for Fetch<'a>
impl<'a> Sync for Fetch<'a>
impl<'a> Unpin for Fetch<'a>
impl<'a> UnwindSafe for Fetch<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)