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 PartialOrd for Command
impl PartialOrd for Command
impl 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
)