pub trait SendMessage {
// Required methods
fn send_chat_message<'a>(&mut self, msg: impl IntoText<'a>);
fn send_action_bar_message<'a>(&mut self, msg: impl IntoText<'a>);
}
Required Methods§
Sourcefn send_chat_message<'a>(&mut self, msg: impl IntoText<'a>)
fn send_chat_message<'a>(&mut self, msg: impl IntoText<'a>)
Sends a system message visible in the chat.
Sourcefn send_action_bar_message<'a>(&mut self, msg: impl IntoText<'a>)
fn send_action_bar_message<'a>(&mut self, msg: impl IntoText<'a>)
Displays a message in the player’s action bar (text above the hotbar).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.