pub struct ChatWriter { /* private fields */ }Expand description
Short-lived scoped handle for a plugin to write messages to the chat.
Posts as plugin:<name> — plugins cannot impersonate users. The writer
is valid only for the duration of [Plugin::handle].
Implements MessageWriter so it can be passed as
Box<dyn MessageWriter> in [CommandContext].
Trait Implementations§
Source§impl MessageWriter for ChatWriter
impl MessageWriter for ChatWriter
Auto Trait Implementations§
impl Freeze for ChatWriter
impl !RefUnwindSafe for ChatWriter
impl Send for ChatWriter
impl Sync for ChatWriter
impl Unpin for ChatWriter
impl UnsafeUnpin for ChatWriter
impl !UnwindSafe for ChatWriter
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