pub enum HandlerCommand {
SetClient(WebSocketClient),
Disconnect,
Authenticate {
payload: SecretString,
},
Subscribe {
topics: Vec<String>,
},
Unsubscribe {
topics: Vec<String>,
},
}Expand description
Commands sent from the outer client to the inner message handler.
Variants§
SetClient(WebSocketClient)
Set the WebSocketClient for the handler to use.
Disconnect
Disconnect the WebSocket connection.
Authenticate
Send authentication payload to the WebSocket.
Fields
§
payload: SecretStringSubscribe
Subscribe to the given topics.
Unsubscribe
Unsubscribe from the given topics.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HandlerCommand
impl !UnwindSafe for HandlerCommand
impl Freeze for HandlerCommand
impl Send for HandlerCommand
impl Sync for HandlerCommand
impl Unpin for HandlerCommand
impl UnsafeUnpin for HandlerCommand
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