Enum igd_next::PortMappingProtocol
source · pub enum PortMappingProtocol {
TCP,
UDP,
}
Expand description
Represents the protocols available for port mapping.
Variants§
Trait Implementations§
source§impl Clone for PortMappingProtocol
impl Clone for PortMappingProtocol
source§fn clone(&self) -> PortMappingProtocol
fn clone(&self) -> PortMappingProtocol
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 PortMappingProtocol
impl Debug for PortMappingProtocol
source§impl Display for PortMappingProtocol
impl Display for PortMappingProtocol
source§impl PartialEq for PortMappingProtocol
impl PartialEq for PortMappingProtocol
source§fn eq(&self, other: &PortMappingProtocol) -> bool
fn eq(&self, other: &PortMappingProtocol) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PortMappingProtocol
impl Eq for PortMappingProtocol
impl StructuralEq for PortMappingProtocol
impl StructuralPartialEq for PortMappingProtocol
Auto Trait Implementations§
impl RefUnwindSafe for PortMappingProtocol
impl Send for PortMappingProtocol
impl Sync for PortMappingProtocol
impl Unpin for PortMappingProtocol
impl UnwindSafe for PortMappingProtocol
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.