pub enum Nettype {
In,
Other(String),
}Expand description
The Nettype as it appears in the connection or origin lines. It’s not a Copy type since it
supports abstract types, not even defined in any RFC.
Variants§
Trait Implementations§
Source§impl Ord for Nettype
impl Ord for Nettype
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Nettype
impl PartialOrd for Nettype
impl Eq for Nettype
impl StructuralPartialEq for Nettype
Auto Trait Implementations§
impl Freeze for Nettype
impl RefUnwindSafe for Nettype
impl Send for Nettype
impl Sync for Nettype
impl Unpin for Nettype
impl UnsafeUnpin for Nettype
impl UnwindSafe for Nettype
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