#[non_exhaustive]pub enum ClientEvent {
Connected,
Message {
seq: u16,
data: Vec<u8>,
},
Reliable(Vec<u8>),
Delivered(u16),
Lost(u16),
Disconnected(Reason),
}Expand description
what happened on the client
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.
Connected
the server took the connection
Message
a message of the server
Reliable(Vec<u8>)
a message of the server’s reliable channel, whole and in order
Delivered(u16)
the server has a packet this side sent
Lost(u16)
a packet this side sent did not reach the server (UDP)
Disconnected(Reason)
the connection ended
Trait Implementations§
Source§impl Clone for ClientEvent
impl Clone for ClientEvent
Source§impl Debug for ClientEvent
impl Debug for ClientEvent
impl Eq for ClientEvent
Source§impl PartialEq for ClientEvent
impl PartialEq for ClientEvent
impl StructuralPartialEq for ClientEvent
Auto Trait Implementations§
impl Forget for ClientEvent
impl Freeze for ClientEvent
impl Move for ClientEvent
impl RefUnwindSafe for ClientEvent
impl Send for ClientEventwhere
RawVecInner: Send,
impl Sync for ClientEventwhere
RawVecInner: Sync,
impl Unpin for ClientEvent
impl UnsafeUnpin for ClientEvent
impl UnwindSafe for ClientEventwhere
RawVecInner: UnwindSafe,
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