Enum crab_nat::InternetProtocol
source · #[repr(u8)]pub enum InternetProtocol {
Udp = 1,
Tcp = 2,
}
Expand description
Specifies the protocol to map a port for.
Variants§
Trait Implementations§
source§impl Clone for InternetProtocol
impl Clone for InternetProtocol
source§fn clone(&self) -> InternetProtocol
fn clone(&self) -> InternetProtocol
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 InternetProtocol
impl Debug for InternetProtocol
impl Copy for InternetProtocol
Auto Trait Implementations§
impl Freeze for InternetProtocol
impl RefUnwindSafe for InternetProtocol
impl Send for InternetProtocol
impl Sync for InternetProtocol
impl Unpin for InternetProtocol
impl UnwindSafe for InternetProtocol
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