pub struct SChatSessionUpdate {
pub session_id: Uuid,
pub expires_at: i64,
pub public_key: Vec<u8>,
pub key_signature: Vec<u8>,
}Expand description
Client -> Server: Updates the player’s chat session with their public key.
Sent when the player first joins or when their key needs to be updated. Contains the session ID and the player’s public key signed by Mojang.
Equivalent to ServerboundChatSessionUpdatePacket in Minecraft.
Fields§
§session_id: UuidThe session ID for this chat session
expires_at: i64Public key expiry timestamp (milliseconds since epoch)
public_key: Vec<u8>The player’s RSA public key (DER encoded)
key_signature: Vec<u8>Mojang’s signature of the key (validates authenticity)
Trait Implementations§
Source§impl Clone for SChatSessionUpdate
impl Clone for SChatSessionUpdate
Source§fn clone(&self) -> SChatSessionUpdate
fn clone(&self) -> SChatSessionUpdate
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 moreSource§impl Debug for SChatSessionUpdate
impl Debug for SChatSessionUpdate
Source§impl ReadFrom for SChatSessionUpdate
impl ReadFrom for SChatSessionUpdate
Source§impl ServerPacket for SChatSessionUpdate
impl ServerPacket for SChatSessionUpdate
Source§fn read_packet(data: &mut Cursor<&[u8]>) -> Result<Self, PacketError>
fn read_packet(data: &mut Cursor<&[u8]>) -> Result<Self, PacketError>
Reads a packet from the given data.
Auto Trait Implementations§
impl Freeze for SChatSessionUpdate
impl RefUnwindSafe for SChatSessionUpdate
impl Send for SChatSessionUpdate
impl Sync for SChatSessionUpdate
impl Unpin for SChatSessionUpdate
impl UnsafeUnpin for SChatSessionUpdate
impl UnwindSafe for SChatSessionUpdate
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>