Enum crab_nat::PortMappingType
source · pub enum PortMappingType {
NatPmp,
Pcp {
client: IpAddr,
nonce: Nonce,
external_ip: IpAddr,
},
}
Expand description
Specifies a port mapping protocol, as well as any protocol specific parameters.
Variants§
Trait Implementations§
source§impl Clone for PortMappingType
impl Clone for PortMappingType
source§fn clone(&self) -> PortMappingType
fn clone(&self) -> PortMappingType
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 Debug for PortMappingType
impl Debug for PortMappingType
impl Copy for PortMappingType
Auto Trait Implementations§
impl Freeze for PortMappingType
impl RefUnwindSafe for PortMappingType
impl Send for PortMappingType
impl Sync for PortMappingType
impl Unpin for PortMappingType
impl UnwindSafe for PortMappingType
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