Enum git_transport::client::MessageKind
source · pub enum MessageKind {
Flush,
Delimiter,
ResponseEnd,
Text(&'static [u8]),
}
Expand description
The kind of packet line to write when transforming a RequestWriter
into an
ExtendedBufRead
.
Variants
Flush
A flush
packet.
Delimiter
A V2 delimiter.
ResponseEnd
The end of a response.
Text(&'static [u8])
The given text.
Trait Implementations
sourceimpl Clone for MessageKind
impl Clone for MessageKind
sourcefn clone(&self) -> MessageKind
fn clone(&self) -> MessageKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MessageKind
impl Debug for MessageKind
sourceimpl Deserialize<'static> for MessageKind
impl Deserialize<'static> for MessageKind
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for MessageKind
impl Hash for MessageKind
sourceimpl Ord for MessageKind
impl Ord for MessageKind
sourcefn cmp(&self, other: &MessageKind) -> Ordering
fn cmp(&self, other: &MessageKind) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<MessageKind> for MessageKind
impl PartialEq<MessageKind> for MessageKind
sourcefn eq(&self, other: &MessageKind) -> bool
fn eq(&self, other: &MessageKind) -> bool
sourceimpl PartialOrd<MessageKind> for MessageKind
impl PartialOrd<MessageKind> for MessageKind
sourcefn partial_cmp(&self, other: &MessageKind) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageKind) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl Serialize for MessageKind
impl Serialize for MessageKind
impl Copy for MessageKind
impl Eq for MessageKind
impl StructuralEq for MessageKind
impl StructuralPartialEq for MessageKind
Auto Trait Implementations
impl RefUnwindSafe for MessageKind
impl Send for MessageKind
impl Sync for MessageKind
impl Unpin for MessageKind
impl UnwindSafe for MessageKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more