pub enum PluginResult {
Reply(String, Option<Value>),
Broadcast(String, Option<Value>),
Handled,
}Expand description
What the broker should do after a plugin handles a command.
Variants§
Reply(String, Option<Value>)
Send a private reply only to the invoker. Second element is optional machine-readable data for programmatic consumers.
Broadcast(String, Option<Value>)
Broadcast a message to the entire room. Second element is optional machine-readable data for programmatic consumers.
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