pub struct NatMigrationConfig {
pub accept_legacy_frames: bool,
pub send_rfc_frames: bool,
pub priority_strategy: PriorityCalculation,
}
Expand description
Migration configuration for NAT traversal
Fields§
§accept_legacy_frames: bool
Whether to accept old format frames
send_rfc_frames: bool
Whether to send RFC-compliant frames
priority_strategy: PriorityCalculation
Default priority calculation strategy
Implementations§
Source§impl NatMigrationConfig
impl NatMigrationConfig
Sourcepub fn rfc_compliant() -> Self
pub fn rfc_compliant() -> Self
Create a config for full RFC compliance
Sourcepub fn legacy_only() -> Self
pub fn legacy_only() -> Self
Create a config for legacy mode
Trait Implementations§
Source§impl Clone for NatMigrationConfig
impl Clone for NatMigrationConfig
Source§fn clone(&self) -> NatMigrationConfig
fn clone(&self) -> NatMigrationConfig
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 NatMigrationConfig
impl Debug for NatMigrationConfig
Auto Trait Implementations§
impl Freeze for NatMigrationConfig
impl RefUnwindSafe for NatMigrationConfig
impl Send for NatMigrationConfig
impl Sync for NatMigrationConfig
impl Unpin for NatMigrationConfig
impl UnwindSafe for NatMigrationConfig
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