pub struct PacketId(/* private fields */);Implementations§
Source§impl PacketId
impl PacketId
Sourcepub const fn as_content_id(&self) -> &ContentId
pub const fn as_content_id(&self) -> &ContentId
Borrow the underlying content id of this packet.
Sourcepub const fn into_content_id(self) -> ContentId
pub const fn into_content_id(self) -> ContentId
Consume this packet id, yielding the content id.
Trait Implementations§
impl Copy for PacketId
Source§impl<'de> Deserialize<'de> for PacketId
impl<'de> Deserialize<'de> for PacketId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PacketId
Source§impl Ord for PacketId
impl Ord for PacketId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for PacketId
impl PartialOrd for PacketId
impl StructuralPartialEq for PacketId
Auto Trait Implementations§
impl Freeze for PacketId
impl RefUnwindSafe for PacketId
impl Send for PacketId
impl Sync for PacketId
impl Unpin for PacketId
impl UnsafeUnpin for PacketId
impl UnwindSafe for PacketId
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