pub struct TransportConfig {
pub protocol: CoverProtocol,
pub max_bandwidth: u64,
pub enable_dummy_traffic: bool,
pub dummy_traffic_ratio: f64,
pub match_packet_size_distribution: bool,
pub match_timing_patterns: bool,
pub max_latency_ms: u64,
}Expand description
Configuration for transport behavior
Fields§
§protocol: CoverProtocolCover protocol to use
max_bandwidth: u64Maximum bandwidth in bytes per second
enable_dummy_traffic: boolEnable dummy traffic generation
dummy_traffic_ratio: f64Target dummy traffic ratio (0.0 to 1.0)
match_packet_size_distribution: boolPacket size distribution matching
match_timing_patterns: boolTiming pattern matching
max_latency_ms: u64Maximum latency tolerance in milliseconds
Trait Implementations§
Source§impl Clone for TransportConfig
impl Clone for TransportConfig
Source§fn clone(&self) -> TransportConfig
fn clone(&self) -> TransportConfig
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 TransportConfig
impl Debug for TransportConfig
Source§impl Default for TransportConfig
impl Default for TransportConfig
Source§impl<'de> Deserialize<'de> for TransportConfig
impl<'de> Deserialize<'de> for TransportConfig
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
Auto Trait Implementations§
impl Freeze for TransportConfig
impl RefUnwindSafe for TransportConfig
impl Send for TransportConfig
impl Sync for TransportConfig
impl Unpin for TransportConfig
impl UnsafeUnpin for TransportConfig
impl UnwindSafe for TransportConfig
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