#[repr(transparent)]pub struct PlayerId(pub NonZeroU64);Expand description
Server-wide unique id generated by server and given to the client’s player.
Tuple Fields§
§0: NonZeroU64Trait Implementations§
Source§impl Pack<MaybePlayerId> for PlayerId
impl Pack<MaybePlayerId> for PlayerId
Source§impl Schema for PlayerId
impl Schema for PlayerId
Source§type Packed = u64
type Packed = u64
Packed value with this schema.
Trivially readable from and writable to bytes.
Source§fn align() -> usize
fn align() -> usize
Alignment required for successful unpacking.
See
Self::unpack method.Source§fn unpack(packed: u64, _input: &[u8]) -> Result<Self, ZeroPlayerIdError>
fn unpack(packed: u64, _input: &[u8]) -> Result<Self, ZeroPlayerIdError>
Unpack the value from packed value and bytes.
input must be aligned according to Self::align.Source§impl SchemaUnpack<'_> for PlayerId
impl SchemaUnpack<'_> for PlayerId
impl Copy for PlayerId
impl Eq for PlayerId
impl StructuralPartialEq for PlayerId
Auto Trait Implementations§
impl Freeze for PlayerId
impl RefUnwindSafe for PlayerId
impl Send for PlayerId
impl Sync for PlayerId
impl Unpin for PlayerId
impl UnwindSafe for PlayerId
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