pub enum DataChannelThreshold {
Low(u32),
High(u32),
}Expand description
The data-part of an data-channel CLOSE message without the message type.
§Memory layout
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Message Type |
+-+-+-+-+-+-+-+-+A buffered-amount threshold crossing, reported internally so the channel can raise
OnBufferedAmountLow/OnBufferedAmountHigh.
Not a DCEP message — it never appears on the wire.
Variants§
Low(u32)
The buffered amount fell to or below the low threshold, carrying its value.
High(u32)
The buffered amount rose to or above the high threshold, carrying its value.
Trait Implementations§
Source§impl Clone for DataChannelThreshold
impl Clone for DataChannelThreshold
Source§fn clone(&self) -> DataChannelThreshold
fn clone(&self) -> DataChannelThreshold
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 DataChannelThreshold
Source§impl Debug for DataChannelThreshold
impl Debug for DataChannelThreshold
impl Eq for DataChannelThreshold
Source§impl Marshal for DataChannelThreshold
impl Marshal for DataChannelThreshold
Source§impl MarshalSize for DataChannelThreshold
impl MarshalSize for DataChannelThreshold
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 DataChannelThreshold
impl PartialEq for DataChannelThreshold
impl StructuralPartialEq for DataChannelThreshold
Auto Trait Implementations§
impl Freeze for DataChannelThreshold
impl RefUnwindSafe for DataChannelThreshold
impl Send for DataChannelThreshold
impl Sync for DataChannelThreshold
impl Unpin for DataChannelThreshold
impl UnsafeUnpin for DataChannelThreshold
impl UnwindSafe for DataChannelThreshold
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