pub trait Packet {
// Required methods
fn as_any(&self) -> &dyn Any;
fn get_name(&self) -> &'static str;
fn object_field_names(&self) -> Vec<&'static str>;
fn object_type_names(&self) -> Vec<&'static str>;
fn get_values(&self) -> Vec<Box<dyn Any>>;
}Expand description
Packet Trait. Can be serialized and deserialized from and into TCP Packets
Required Methods§
Sourcefn object_field_names(&self) -> Vec<&'static str>
fn object_field_names(&self) -> Vec<&'static str>
Gets the field names of the Packet Struct
Sourcefn object_type_names(&self) -> Vec<&'static str>
fn object_type_names(&self) -> Vec<&'static str>
Gets the field types of the Packet Struct
Sourcefn get_values(&self) -> Vec<Box<dyn Any>>
fn get_values(&self) -> Vec<Box<dyn Any>>
Gets the field values of the Packet Struct