pub struct RemoteChatSession {
pub session_id: Uuid,
pub profile_public_key: ProfilePublicKey,
}Expand description
Remote chat session containing session ID and validated public key.
Equivalent to RemoteChatSession in Minecraft.
Fields§
§session_id: UuidThe session ID
profile_public_key: ProfilePublicKeyThe validated profile public key
Implementations§
Source§impl RemoteChatSession
impl RemoteChatSession
Sourcepub const fn new(session_id: Uuid, profile_public_key: ProfilePublicKey) -> Self
pub const fn new(session_id: Uuid, profile_public_key: ProfilePublicKey) -> Self
Creates a new remote chat session
Sourcepub fn has_expired(&self) -> bool
pub fn has_expired(&self) -> bool
Checks if the key has expired
Sourcepub fn as_data(&self) -> RemoteChatSessionData
pub fn as_data(&self) -> RemoteChatSessionData
Converts to data for network transmission
Trait Implementations§
Source§impl Clone for RemoteChatSession
impl Clone for RemoteChatSession
Source§fn clone(&self) -> RemoteChatSession
fn clone(&self) -> RemoteChatSession
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 moreAuto Trait Implementations§
impl Freeze for RemoteChatSession
impl RefUnwindSafe for RemoteChatSession
impl Send for RemoteChatSession
impl Sync for RemoteChatSession
impl Unpin for RemoteChatSession
impl UnsafeUnpin for RemoteChatSession
impl UnwindSafe for RemoteChatSession
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<>>