pub struct EncodingSymbolId(/* private fields */);Expand description
A wrapping RFC 8681 Encoding Symbol ID (ESI).
This transparent newtype prevents symbol identifiers from being confused with packet sequence numbers or ordinary counters.
Implementations§
Source§impl EncodingSymbolId
impl EncodingSymbolId
Sourcepub const fn wrapping_add(self, count: u32) -> Self
pub const fn wrapping_add(self, count: u32) -> Self
Advances this ESI with RFC sequence-space wrapping.
Sourcepub const fn wrapping_sub(self, count: u32) -> Self
pub const fn wrapping_sub(self, count: u32) -> Self
Moves this ESI backward with RFC sequence-space wrapping.
Trait Implementations§
Source§impl Clone for EncodingSymbolId
impl Clone for EncodingSymbolId
impl Copy for EncodingSymbolId
Source§impl Debug for EncodingSymbolId
impl Debug for EncodingSymbolId
Source§impl Display for EncodingSymbolId
impl Display for EncodingSymbolId
impl Eq for EncodingSymbolId
Source§impl From<EncodingSymbolId> for u32
impl From<EncodingSymbolId> for u32
Source§fn from(value: EncodingSymbolId) -> Self
fn from(value: EncodingSymbolId) -> Self
Converts to this type from the input type.
Source§impl From<u32> for EncodingSymbolId
impl From<u32> for EncodingSymbolId
Source§impl Hash for EncodingSymbolId
impl Hash for EncodingSymbolId
Source§impl PartialEq for EncodingSymbolId
impl PartialEq for EncodingSymbolId
impl StructuralPartialEq for EncodingSymbolId
Auto Trait Implementations§
impl Freeze for EncodingSymbolId
impl RefUnwindSafe for EncodingSymbolId
impl Send for EncodingSymbolId
impl Sync for EncodingSymbolId
impl Unpin for EncodingSymbolId
impl UnsafeUnpin for EncodingSymbolId
impl UnwindSafe for EncodingSymbolId
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