#[non_exhaustive]pub enum Account {
Offline(OfflineProfile),
Microsoft {
session: MinecraftSession,
auth: Arc<MicrosoftAuth>,
},
}Expand description
The account a client logs in with.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Offline(OfflineProfile)
Offline mode (the server does not authenticate; the UUID derives from the name).
Microsoft
A Microsoft account session (needed for online-mode servers).
Fields
§
session: MinecraftSessionThe logged-in session (access token and profile).
§
auth: Arc<MicrosoftAuth>The client that makes the session-server join call.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Account
impl !UnwindSafe for Account
impl Freeze for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnsafeUnpin for Account
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