#[non_exhaustive]pub enum MessageType {
DataChannelThreshold,
DataChannelClose,
DataChannelAck,
DataChannelOpen,
}Expand description
The one-byte type that prefixes a DCEP message.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DataChannelThreshold
A buffered-amount threshold crossing. Internal to this crate.
DataChannelClose
A channel close notification. Internal to this crate.
DataChannelAck
DATA_CHANNEL_ACK (0x02).
DataChannelOpen
DATA_CHANNEL_OPEN (0x03).
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
impl Copy for MessageType
Source§impl Debug for MessageType
impl Debug for MessageType
impl Eq for MessageType
Source§impl Marshal for MessageType
impl Marshal for MessageType
Source§impl MarshalSize for MessageType
impl MarshalSize for MessageType
Source§fn marshal_size(&self) -> usize
fn marshal_size(&self) -> usize
The number of bytes
Marshal::marshal_to will write for this value.Source§impl PartialEq for MessageType
impl PartialEq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Forget for MessageType
impl Freeze for MessageType
impl Move for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnsafeUnpin for MessageType
impl UnwindSafe for MessageType
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