Enum git_transport::Protocol
source · pub enum Protocol {
V1,
V2,
}
Expand description
The version of the way client and server communicate.
Variants§
V1
Version 1 was the first one conceived, is stateful, and our implementation was seen to cause deadlocks. Prefer V2
V2
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 PartialEq<Protocol> for Protocol
impl PartialEq<Protocol> for Protocol
source§impl PartialOrd<Protocol> for Protocol
impl PartialOrd<Protocol> for Protocol
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