pub struct CmdLogging {
pub client_id: u32,
pub company_id: u8,
pub command_id: u16,
pub p1: u32,
pub p2: u32,
pub tile: u32,
pub text: String,
pub execution_frame: u32,
}
Expand description
Send incoming command packets to the admin network. This is for logging purposes only.
NOTICE: Data provided with this packet is not stable and will not be across different versions / revisions of OpenTTD. Data provided in this packet is for logging purposes only.
Fields§
§client_id: u32
ID of the client sending the command.
company_id: u8
ID of the company (0..MAX_COMPANIES-1).
command_id: u16
ID of the command.
p1: u32
P1 (variable data passed to the command).
p2: u32
P2 (variable data passed to the command).
tile: u32
Tile where this is taking place.
text: String
Text passed to the command.
execution_frame: u32
Frame of execution.
Trait Implementations§
Source§impl Clone for CmdLogging
impl Clone for CmdLogging
Source§fn clone(&self) -> CmdLogging
fn clone(&self) -> CmdLogging
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 CmdLogging
impl Debug for CmdLogging
Source§impl<'de> Deserialize<'de> for CmdLogging
impl<'de> Deserialize<'de> for CmdLogging
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CmdLogging
impl PartialEq for CmdLogging
Source§impl Serialize for CmdLogging
impl Serialize for CmdLogging
impl Eq for CmdLogging
impl StructuralPartialEq for CmdLogging
Auto Trait Implementations§
impl Freeze for CmdLogging
impl RefUnwindSafe for CmdLogging
impl Send for CmdLogging
impl Sync for CmdLogging
impl Unpin for CmdLogging
impl UnwindSafe for CmdLogging
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