Enum gix_protocol::Command
source · pub enum Command {
LsRefs,
Fetch,
}
Expand description
A selector for V2 commands to invoke on the server for purpose of pre-invocation validation.
Variants§
Implementations§
source§impl Command
impl Command
sourcepub fn default_features(
&self,
version: Protocol,
server_capabilities: &Capabilities
) -> Vec<Feature>
Available on crate features async-client
or blocking-client
only.
pub fn default_features( &self, version: Protocol, server_capabilities: &Capabilities ) -> Vec<Feature>
async-client
or blocking-client
only.Turns on all modern features for V1 and all supported features for V2, returning them as a vector of features. Note that this is the basis for any fetch operation as these features fulfil basic requirements and reasonably up-to-date servers.
Trait Implementations§
source§impl Ord for Command
impl Ord for Command
source§impl PartialEq<Command> for Command
impl PartialEq<Command> for Command
source§impl PartialOrd<Command> for Command
impl PartialOrd<Command> for Command
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more