pub enum MessageType {
DataChannelThreshold,
DataChannelClose,
DataChannelAck,
DataChannelOpen,
}Expand description
The one-byte type that prefixes a DCEP message.
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
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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 Freeze 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