pub struct NatTraversalFrameConfig {
pub use_rfc_format: bool,
pub accept_legacy: bool,
}
Expand description
Configuration for NAT traversal frame handling
Fields§
§use_rfc_format: bool
Whether to send RFC-compliant frames
accept_legacy: bool
Whether to accept legacy format frames
Implementations§
Source§impl NatTraversalFrameConfig
impl NatTraversalFrameConfig
Sourcepub fn from_transport_params(
local: &TransportParameters,
peer: &TransportParameters,
) -> Self
pub fn from_transport_params( local: &TransportParameters, peer: &TransportParameters, ) -> Self
Create config based on transport parameters negotiation
Trait Implementations§
Source§impl Clone for NatTraversalFrameConfig
impl Clone for NatTraversalFrameConfig
Source§fn clone(&self) -> NatTraversalFrameConfig
fn clone(&self) -> NatTraversalFrameConfig
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 NatTraversalFrameConfig
impl Debug for NatTraversalFrameConfig
Auto Trait Implementations§
impl Freeze for NatTraversalFrameConfig
impl RefUnwindSafe for NatTraversalFrameConfig
impl Send for NatTraversalFrameConfig
impl Sync for NatTraversalFrameConfig
impl Unpin for NatTraversalFrameConfig
impl UnwindSafe for NatTraversalFrameConfig
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