pub enum CommandName {
Subscribe,
Unsubscribe,
Message,
}Expand description
The verb of a client-to-server command.
Variants§
Subscribe
Asks the server for a subscription to one identifier.
Unsubscribe
Tells the server to drop one.
Message
Carries a payload to the channel.
Implementations§
Trait Implementations§
Source§impl Clone for CommandName
impl Clone for CommandName
impl Copy for CommandName
Source§impl Debug for CommandName
impl Debug for CommandName
Source§impl Display for CommandName
impl Display for CommandName
impl Eq for CommandName
Source§impl PartialEq for CommandName
impl PartialEq for CommandName
impl StructuralPartialEq for CommandName
Auto Trait Implementations§
impl Freeze for CommandName
impl RefUnwindSafe for CommandName
impl Send for CommandName
impl Sync for CommandName
impl Unpin for CommandName
impl UnsafeUnpin for CommandName
impl UnwindSafe for CommandName
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