pub enum PluginResult {
Reply(String),
Broadcast(String),
Handled,
}Expand description
What the broker should do after a plugin handles a command.
Variants§
Reply(String)
Send a private reply only to the invoker.
Broadcast(String)
Broadcast a message to the entire room.
Handled
Command handled silently (side effects already done via MessageWriter).
Auto Trait Implementations§
impl Freeze for PluginResult
impl RefUnwindSafe for PluginResult
impl Send for PluginResult
impl Sync for PluginResult
impl Unpin for PluginResult
impl UnsafeUnpin for PluginResult
impl UnwindSafe for PluginResult
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