pub struct OnConsoleChatEvent {
pub message: &'static str,
pub name: &'static str,
pub player_index: u32,
pub tick: u32,
}Expand description
Called when a message is sent to the in-game console, either by a player or through the server interface.
This event only fires for plain messages, not for any commands (including /shout or /whisper).
Fields§
§message: &'static str§name: &'static str§player_index: u32§tick: u32Trait Implementations§
Source§impl Clone for OnConsoleChatEvent
impl Clone for OnConsoleChatEvent
Source§fn clone(&self) -> OnConsoleChatEvent
fn clone(&self) -> OnConsoleChatEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OnConsoleChatEvent
Source§impl Debug for OnConsoleChatEvent
impl Debug for OnConsoleChatEvent
Source§impl Default for OnConsoleChatEvent
impl Default for OnConsoleChatEvent
Source§fn default() -> OnConsoleChatEvent
fn default() -> OnConsoleChatEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnConsoleChatEvent
impl PartialEq for OnConsoleChatEvent
impl StructuralPartialEq for OnConsoleChatEvent
Auto Trait Implementations§
impl Freeze for OnConsoleChatEvent
impl RefUnwindSafe for OnConsoleChatEvent
impl Send for OnConsoleChatEvent
impl Sync for OnConsoleChatEvent
impl Unpin for OnConsoleChatEvent
impl UnsafeUnpin for OnConsoleChatEvent
impl UnwindSafe for OnConsoleChatEvent
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