pub struct TransportConfig {
pub pqc_enabled: bool,
pub scheduler_mode: SchedulerMode,
pub max_packet_size: usize,
pub stealth_mode: bool,
}Expand description
Configuration for Phantom transport
Fields§
§pqc_enabled: boolEnable post-quantum cryptography (default: true)
scheduler_mode: SchedulerModeScheduler mode for path selection
max_packet_size: usizeMaximum packet size (default: 1400 bytes for KCP)
stealth_mode: boolEnable stealth mode for anti-DPI (default: false)
Implementations§
Source§impl TransportConfig
impl TransportConfig
Sourcepub fn low_latency() -> Self
pub fn low_latency() -> Self
Create a config optimized for latency
Sourcepub fn high_throughput() -> Self
pub fn high_throughput() -> Self
Create a config optimized for high throughput
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 (const: unstable) · 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
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