pub struct PlayerLeftEvent;Expand description
A player has disconnected from the server.
Not cancellable — the connection is already closed. The leaving
player’s identity is available via ctx.player().
Trait Implementations§
Source§impl Clone for PlayerLeftEvent
impl Clone for PlayerLeftEvent
Source§fn clone(&self) -> PlayerLeftEvent
fn clone(&self) -> PlayerLeftEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 PlayerLeftEvent
impl Debug for PlayerLeftEvent
Source§impl Event for PlayerLeftEvent
impl Event for PlayerLeftEvent
Source§fn is_cancelled(&self) -> bool
fn is_cancelled(&self) -> bool
Whether this event has been cancelled by a Validate handler.
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Upcasts to
&mut dyn Any for mutable type-erased dispatch.Source§impl EventRouting for PlayerLeftEvent
impl EventRouting for PlayerLeftEvent
Auto Trait Implementations§
impl Freeze for PlayerLeftEvent
impl RefUnwindSafe for PlayerLeftEvent
impl Send for PlayerLeftEvent
impl Sync for PlayerLeftEvent
impl Unpin for PlayerLeftEvent
impl UnsafeUnpin for PlayerLeftEvent
impl UnwindSafe for PlayerLeftEvent
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