Enum gix_negotiate::Algorithm
source · pub enum Algorithm {
Noop,
Consecutive,
Skipping,
}
Expand description
The way the negotiation is performed.
Variants§
Noop
Do not send any information at all, which typically leads to complete packs to be sent.
Consecutive
Walk over consecutive commits and check each one. This can be costly be assures packs are exactly the size they need to be.
Skipping
Like Consecutive
, but skips commits to converge faster, at the cost of receiving packs that are larger than they have to be.
Implementations§
source§impl Algorithm
impl Algorithm
sourcepub fn into_negotiator(self) -> Box<dyn Negotiator>
pub fn into_negotiator(self) -> Box<dyn Negotiator>
Create an instance of a negotiator which implements this algorithm.
Trait Implementations§
source§impl PartialEq for Algorithm
impl PartialEq for Algorithm
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)