pub struct PacketBundle {
pub channel_id: u32,
pub length: u16,
}Fields§
§channel_id: u32§length: u16Trait Implementations§
Source§impl Clone for PacketBundle
impl Clone for PacketBundle
Source§fn clone(&self) -> PacketBundle
fn clone(&self) -> PacketBundle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PacketBundle
impl Debug for PacketBundle
Source§impl<'a> Decode<'a> for PacketBundle
impl<'a> Decode<'a> for PacketBundle
fn decode(cursor: &DecodeCursor<'a>) -> DecodeResult<Self>
Source§impl Encode for PacketBundle
impl Encode for PacketBundle
fn scratch_len(&self) -> usize
fn encode(&self, cursor: &mut EncodeCursor<'_>)
Source§impl Hash for PacketBundle
impl Hash for PacketBundle
Source§impl Ord for PacketBundle
impl Ord for PacketBundle
Source§fn cmp(&self, other: &PacketBundle) -> Ordering
fn cmp(&self, other: &PacketBundle) -> Ordering
1.21.0 · 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
Source§impl Owned for PacketBundle
impl Owned for PacketBundle
type Lazy<'a> = PacketBundleLazy<'a>
fn lazy_to_owned(lazy: Self::Lazy<'_>) -> DecodeResult<Self>
Source§impl PartialEq for PacketBundle
impl PartialEq for PacketBundle
Source§impl PartialOrd for PacketBundle
impl PartialOrd for PacketBundle
Source§impl<'a> TryFrom<PacketBundleLazy<'a>> for PacketBundle
impl<'a> TryFrom<PacketBundleLazy<'a>> for PacketBundle
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
impl Compatible<PacketBundle> for PacketBundle
impl<'a> Compatible<PacketBundle> for PacketBundleLazy<'a>
impl<'a> Compatible<PacketBundleLazy<'a>> for PacketBundle
impl Copy for PacketBundle
impl Eq for PacketBundle
impl StructuralPartialEq for PacketBundle
Auto Trait Implementations§
impl Freeze for PacketBundle
impl RefUnwindSafe for PacketBundle
impl Send for PacketBundle
impl Sync for PacketBundle
impl Unpin for PacketBundle
impl UnwindSafe for PacketBundle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.