pub enum IPProtocol {
Both,
IPv4,
IPv6,
}Expand description
Specifies which IP address protocol versions are accepted.
Variants§
Both
Accept both IPv4 and IPv6 addresses.
IPv4
Accept only IPv4 addresses.
IPv6
Accept only IPv6 addresses.
Trait Implementations§
Source§impl Clone for IPProtocol
impl Clone for IPProtocol
Source§fn clone(&self) -> IPProtocol
fn clone(&self) -> IPProtocol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IPProtocol
impl Debug for IPProtocol
impl Copy for IPProtocol
Auto Trait Implementations§
impl Freeze for IPProtocol
impl RefUnwindSafe for IPProtocol
impl Send for IPProtocol
impl Sync for IPProtocol
impl Unpin for IPProtocol
impl UnsafeUnpin for IPProtocol
impl UnwindSafe for IPProtocol
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