#[repr(C)]pub struct SMessageEvent {
pub player: c_int,
pub message: *const c_char,
}
Expand description
This AI event is a notification about a chat message sent by one of the participants of this game, which may be a player or an AI, including this AI.
Fields§
§player: c_int
§message: *const c_char
Trait Implementations§
Source§impl Clone for SMessageEvent
impl Clone for SMessageEvent
Source§fn clone(&self) -> SMessageEvent
fn clone(&self) -> SMessageEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SMessageEvent
impl Debug for SMessageEvent
impl Copy for SMessageEvent
Auto Trait Implementations§
impl Freeze for SMessageEvent
impl RefUnwindSafe for SMessageEvent
impl !Send for SMessageEvent
impl !Sync for SMessageEvent
impl Unpin for SMessageEvent
impl UnwindSafe for SMessageEvent
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