Struct crab_nat::PortMappingOptions
source · pub struct PortMappingOptions {
pub external_port: Option<NonZeroU16>,
pub lifetime_seconds: Option<u32>,
pub timeout_config: Option<TimeoutConfig>,
}
Expand description
Optional configuration values for a port mapping request.
Fields§
§external_port: Option<NonZeroU16>
The external port to try to map. The server is not guaranteed to use this port.
lifetime_seconds: Option<u32>
The lifetime of the port mapping in seconds. The server is not guaranteed to use this lifetime.
timeout_config: Option<TimeoutConfig>
The configuration of the timing of UDP requests made to the gateway.
Trait Implementations§
source§impl Clone for PortMappingOptions
impl Clone for PortMappingOptions
source§fn clone(&self) -> PortMappingOptions
fn clone(&self) -> PortMappingOptions
Returns a copy 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 Default for PortMappingOptions
impl Default for PortMappingOptions
source§fn default() -> PortMappingOptions
fn default() -> PortMappingOptions
Returns the “default value” for a type. Read more
impl Copy for PortMappingOptions
Auto Trait Implementations§
impl Freeze for PortMappingOptions
impl RefUnwindSafe for PortMappingOptions
impl Send for PortMappingOptions
impl Sync for PortMappingOptions
impl Unpin for PortMappingOptions
impl UnwindSafe for PortMappingOptions
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