pub struct Arguments { /* private fields */ }
Available on crate features blocking-client or async-client only.
Expand description

The arguments passed to a server command.

Implementations

Available on crate feature blocking-client only.

Send fetch arguments to the server, and indicate this is the end of negotiations only if add_done_argument is present.

Return true if there is no argument at all.

This can happen if callers assure that they won’t add ‘wants’ if their ‘have’ is the same, i.e. if the remote has nothing new for them.

Return true if ref filters is supported.

Return true if shallow refs are supported.

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

Return true if the ‘deepen’ capability is supported.

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

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.

Return true if the ‘deepen_not’ capability is supported.

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

Return true if the ‘deepen_relative’ capability is supported.

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

Return true if the ‘ref-in-want’ capability is supported.

This can be used to bypass ‘ls-refs’ entirely in protocol v2.

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.

Add the given ref to the ‘want-ref’ list.

The server should respond with a corresponding ‘wanted-refs’ section if it will include the wanted ref in the packfile response.

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.

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

Deepen the commit history by depth amount of commits.

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

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

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

Set the given filter spec when listing references.

Available on crate features async-client or blocking-client only.

Create a new instance to help setting up arguments to send to the server as part of a fetch operation for which features are the available and configured features to use.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.