Struct git_protocol::fetch::Arguments[][src]

pub struct Arguments { /* fields omitted */ }

The arguments passed to a server command.

Implementations

impl Arguments[src]

pub fn can_use_filter(&self) -> bool[src]

Return true if ref filters is supported.

pub fn can_use_shallow(&self) -> bool[src]

Return true if shallow refs are supported.

This is relevant for partial clones when using --depth X.

pub fn can_use_deepen(&self) -> bool[src]

Return true if the ‘deepen’ capability is supported.

This is relevant for partial clones when using --depth X and retrieving additional history.

pub fn can_use_deepen_since(&self) -> bool[src]

Return true if the ‘deepen_since’ capability is supported.

This is relevant for partial clones when using --depth X and retrieving additional history based on a date beyond which all history should be present.

pub fn can_use_deepen_not(&self) -> bool[src]

Return true if the ‘deepen_not’ capability is supported.

This is relevant for partial clones when using --depth X.

pub fn can_use_deepen_relative(&self) -> bool[src]

Return true if the ‘deepen_relative’ capability is supported.

This is relevant for partial clones when using --depth X.

pub fn want(&mut self, id: Id<'_>)[src]

Add the given id pointing to a commit to the ‘want’ list.

As such it should be included in the server response as it’s not present on the client.

pub fn have(&mut self, id: Id<'_>)[src]

Add the given id pointing to a commit to the ‘have’ list.

As such it should not be included in the server response as it’s already present on the client.

pub fn shallow(&mut self, id: Id<'_>)[src]

Add the given id pointing to a commit to the ‘shallow’ list.

pub fn deepen(&mut self, depth: usize)[src]

Deepen the commit history by depth amount of commits.

pub fn deepen_since(&mut self, seconds_since_unix_epoch: usize)[src]

Deepen the commit history to include all commits from now to seconds_since_unix_epoch.

pub fn deepen_relative(&mut self)[src]

Deepen the commit history in a relative instead of absolute fashion.

pub fn deepen_not(&mut self, ref_path: &BStr)[src]

Do not include commits reachable by the given ref_path when deepening the history.

pub fn filter(&mut self, spec: &str)[src]

Set the given filter spec when listing references.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.