pub enum Protocol {
V0 = 0,
V1 = 1,
V2 = 2,
}
Expand description
The version of the way client and server communicate.
Variants§
V0 = 0
Version 0 is like V1, but doesn’t show capabilities at all, at least when hosted without git-daemon
.
V1 = 1
Version 1 was the first one conceived, is stateful, and our implementation was seen to cause deadlocks. Prefer V2
V2 = 2
A command-based and stateless protocol with clear semantics, and the one to use assuming the server isn’t very old. This is the default.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Protocol
impl<'de> Deserialize<'de> for Protocol
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Protocol
impl Ord for Protocol
Source§impl PartialOrd for Protocol
impl PartialOrd for Protocol
impl Copy for Protocol
impl Eq for Protocol
impl StructuralPartialEq for Protocol
Auto Trait Implementations§
impl Freeze for Protocol
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnwindSafe for Protocol
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