pub enum Command {
    Identify(IdentifyConfig),
    Subscribe(String, String),
    Publish(String, Vec<u8>),
    DelayedPublish(String, Vec<u8>, u32),
    Mpublish(String, Vec<Vec<u8>>),
    Ready(u32),
    Finish(String),
    Requeue(String, u32),
    Touch(String),
    Nop,
    Cls,
    Auth(Option<String>),
}Expand description
命令类型枚举
Variants§
Identify(IdentifyConfig)
标识服务器身份和特性
Subscribe(String, String)
订阅主题和频道
Publish(String, Vec<u8>)
发布消息到主题
DelayedPublish(String, Vec<u8>, u32)
延迟发布消息到主题
Mpublish(String, Vec<Vec<u8>>)
批量发布消息到主题
Ready(u32)
准备接收更多消息
Finish(String)
完成处理消息
Requeue(String, u32)
重新入队消息
Touch(String)
标记消息需要延迟处理
Nop
处理不同的响应类型
Cls
清理和关闭连接
Auth(Option<String>)
认证
Implementations§
Trait Implementations§
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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