#[non_exhaustive]pub enum Message {
DataChannelThreshold(DataChannelThreshold),
DataChannelClose(DataChannelClose),
DataChannelAck(DataChannelAck),
DataChannelOpen(DataChannelOpen),
}Expand description
A parsed DataChannel 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(DataChannelThreshold)
A buffered-amount threshold crossing. Internal to this crate — not a DCEP message.
DataChannelClose(DataChannelClose)
A channel close notification. Internal to this crate — not a DCEP message.
DataChannelAck(DataChannelAck)
DATA_CHANNEL_ACK, sent by the peer to confirm it accepted a DATA_CHANNEL_OPEN.
DataChannelOpen(DataChannelOpen)
DATA_CHANNEL_OPEN, which opens a channel and carries its label, protocol and
reliability parameters.
Implementations§
Source§impl Message
impl Message
Sourcepub fn message_type(&self) -> MessageType
pub fn message_type(&self) -> MessageType
The type byte that identifies this message on the wire.
Trait Implementations§
impl Eq for Message
Source§impl MarshalSize for Message
impl MarshalSize for Message
Source§fn marshal_size(&self) -> usize
fn marshal_size(&self) -> usize
The number of bytes
Marshal::marshal_to will write for this value.impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Forget for Message
impl Freeze for Message
impl Move for Message
impl RefUnwindSafe for Message
impl Send for Messagewhere
RawVecInner: Send,
impl Sync for Messagewhere
RawVecInner: Sync,
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Messagewhere
RawVecInner: UnwindSafe,
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