pub enum ClientToServerEvent {
Authenticate {
token: String,
},
BeginTyping {
channel: ChannelId,
},
EndTyping {
channel: ChannelId,
},
Ping {
data: u32,
},
}Expand description
Any message the client can send to the server.
Variants§
Trait Implementations§
Source§impl Clone for ClientToServerEvent
impl Clone for ClientToServerEvent
Source§fn clone(&self) -> ClientToServerEvent
fn clone(&self) -> ClientToServerEvent
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 ClientToServerEvent
impl Debug for ClientToServerEvent
Source§impl Hash for ClientToServerEvent
impl Hash for ClientToServerEvent
Source§impl Ord for ClientToServerEvent
impl Ord for ClientToServerEvent
Source§fn cmp(&self, other: &ClientToServerEvent) -> Ordering
fn cmp(&self, other: &ClientToServerEvent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ClientToServerEvent
impl PartialEq for ClientToServerEvent
Source§impl PartialOrd for ClientToServerEvent
impl PartialOrd for ClientToServerEvent
Source§impl Serialize for ClientToServerEvent
impl Serialize for ClientToServerEvent
impl Eq for ClientToServerEvent
impl StructuralPartialEq for ClientToServerEvent
Auto Trait Implementations§
impl Freeze for ClientToServerEvent
impl RefUnwindSafe for ClientToServerEvent
impl Send for ClientToServerEvent
impl Sync for ClientToServerEvent
impl Unpin for ClientToServerEvent
impl UnwindSafe for ClientToServerEvent
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