#[non_exhaustive]pub enum SessionEnd {
Kicked {
reason: String,
json: String,
},
ServerClosed,
Quit(String),
Shutdown,
}Expand description
How a session that reached the play state ended without an error.
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.
Kicked
The server kicked the player.
Fields
ServerClosed
The server closed the connection without a reason.
Quit(String)
The behaviour called crate::TickContext::disconnect.
Shutdown
The shutdown future given to crate::Client::run_until completed.
Trait Implementations§
Source§impl Clone for SessionEnd
impl Clone for SessionEnd
Source§impl Debug for SessionEnd
impl Debug for SessionEnd
impl Eq for SessionEnd
Source§impl PartialEq for SessionEnd
impl PartialEq for SessionEnd
impl StructuralPartialEq for SessionEnd
Auto Trait Implementations§
impl Forget for SessionEnd
impl Freeze for SessionEnd
impl RefUnwindSafe for SessionEnd
impl Send for SessionEnd
impl Sync for SessionEnd
impl Unpin for SessionEnd
impl UnsafeUnpin for SessionEnd
impl UnwindSafe for SessionEnd
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