Enum scutiger_core::pktline::PacketType [−][src]
pub enum PacketType {
Flush,
Delim,
Data(usize),
}
Expand description
The type of a packet received.
Variants
A flush packet (0000).
A delimiter packet (0001).
Data(usize)
A data packet.
The contained value is the number of bytes of data read, not the packet value.
Tuple Fields of Data
0: usize
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PacketType
impl Send for PacketType
impl Sync for PacketType
impl Unpin for PacketType
impl UnwindSafe for PacketType
Blanket Implementations
Mutably borrows from an owned value. Read more