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 for Command
impl PartialEq for Command
source§impl PartialOrd for Command
impl PartialOrd 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 moreimpl Copy for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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