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§
source§impl Clone for MessageKind
impl Clone for MessageKind
source§fn clone(&self) -> MessageKind
fn clone(&self) -> MessageKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MessageKind
impl Debug for MessageKind
source§impl Deserialize<'static> for MessageKind
impl Deserialize<'static> for MessageKind
source§fn 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
source§impl Hash for MessageKind
impl Hash for MessageKind
source§impl Ord for MessageKind
impl Ord for MessageKind
source§fn cmp(&self, other: &MessageKind) -> Ordering
fn cmp(&self, other: &MessageKind) -> Ordering
1.21.0 · source§fn 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
source§impl PartialEq for MessageKind
impl PartialEq for MessageKind
source§impl PartialOrd for MessageKind
impl PartialOrd for MessageKind
source§impl Serialize for MessageKind
impl Serialize for MessageKind
impl Copy for MessageKind
impl Eq for MessageKind
impl StructuralPartialEq for MessageKind
Auto Trait Implementations§
impl Freeze for MessageKind
impl RefUnwindSafe for MessageKind
impl Send for MessageKind
impl Sync for MessageKind
impl Unpin for MessageKind
impl UnwindSafe for MessageKind
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
)