pub struct SimulatedPacket {
pub source_ip: String,
pub dest_ip: String,
pub source_port: u16,
pub dest_port: u16,
pub payload: Vec<u8>,
pub protocol: String,
}Expand description
Simulated network packet for censorship testing.
Fields§
§source_ip: String§dest_ip: String§source_port: u16§dest_port: u16§payload: Vec<u8>§protocol: StringTrait Implementations§
Source§impl Clone for SimulatedPacket
impl Clone for SimulatedPacket
Source§fn clone(&self) -> SimulatedPacket
fn clone(&self) -> SimulatedPacket
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 moreAuto Trait Implementations§
impl Freeze for SimulatedPacket
impl RefUnwindSafe for SimulatedPacket
impl Send for SimulatedPacket
impl Sync for SimulatedPacket
impl Unpin for SimulatedPacket
impl UnsafeUnpin for SimulatedPacket
impl UnwindSafe for SimulatedPacket
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