pub enum ChannelCommand {
Identify(String),
Terminate(String),
ChannelMessage((String, String)),
Ping,
Pong,
}
Variants§
Identify(String)
Identify the connection endpoint, normally use channel-id
.
Terminate(String)
Terminate connection.
ChannelMessage((String, String))
Channel message. normally sent by server.
Ping
Ping msg
Pong
Pong msg
Trait Implementations§
Source§impl Clone for ChannelCommand
impl Clone for ChannelCommand
Source§fn clone(&self) -> ChannelCommand
fn clone(&self) -> ChannelCommand
Returns a copy 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 ChannelCommand
impl Debug for ChannelCommand
Source§impl From<Frame> for ChannelCommand
impl From<Frame> for ChannelCommand
Auto Trait Implementations§
impl Freeze for ChannelCommand
impl RefUnwindSafe for ChannelCommand
impl Send for ChannelCommand
impl Sync for ChannelCommand
impl Unpin for ChannelCommand
impl UnwindSafe for ChannelCommand
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