pub enum PktLine {
Data(Vec<u8>),
Flush,
Delimiter,
ResponseEnd,
}Expand description
A pkt-line packet.
Variants§
Data(Vec<u8>)
Data line with content.
Flush
Flush packet (0000).
Delimiter
Delimiter packet (0001).
ResponseEnd
Response-end packet (0002).
Implementations§
Trait Implementations§
impl Eq for PktLine
impl StructuralPartialEq for PktLine
Auto Trait Implementations§
impl Freeze for PktLine
impl RefUnwindSafe for PktLine
impl Send for PktLine
impl Sync for PktLine
impl Unpin for PktLine
impl UnwindSafe for PktLine
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.