pub enum Message {
DataChannelThreshold(DataChannelThreshold),
DataChannelClose(DataChannelClose),
DataChannelAck(DataChannelAck),
DataChannelOpen(DataChannelOpen),
}Expand description
A parsed DataChannel message
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 Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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