pub enum ConnectionMessage {
StartTyping {
channel: ChannelId,
},
StopTyping {
channel: ChannelId,
},
Close,
}Expand description
A message to a Connection
Variants§
StartTyping
Tells the Connection to emit a ClientToServerEvent::BeginTyping event in the given channel.
StopTyping
Tells the Connection to emit a ClientToServerEvent::EndTyping event in the given channel.
Close
Tells the Connection to close itself, and return from the loop.
Trait Implementations§
Source§impl Clone for ConnectionMessage
impl Clone for ConnectionMessage
Source§fn clone(&self) -> ConnectionMessage
fn clone(&self) -> ConnectionMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConnectionMessage
impl Debug for ConnectionMessage
impl Copy for ConnectionMessage
Auto Trait Implementations§
impl Freeze for ConnectionMessage
impl RefUnwindSafe for ConnectionMessage
impl Send for ConnectionMessage
impl Sync for ConnectionMessage
impl Unpin for ConnectionMessage
impl UnsafeUnpin for ConnectionMessage
impl UnwindSafe for ConnectionMessage
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