Packet

Trait Packet 

Source
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§

Source

fn as_any(&self) -> &dyn Any

Gets self as the Any type

Source

fn get_name(&self) -> &'static str

Gets the packet’s name

Source

fn object_field_names(&self) -> Vec<&'static str>

Gets the field names of the Packet Struct

Source

fn object_type_names(&self) -> Vec<&'static str>

Gets the field types of the Packet Struct

Source

fn get_values(&self) -> Vec<Box<dyn Any>>

Gets the field values of the Packet Struct

Implementors§