Struct veilid_tools::InterfaceFlags
source · pub struct InterfaceFlags {
pub is_loopback: bool,
pub is_running: bool,
pub is_point_to_point: bool,
pub has_default_route: bool,
}
Expand description
Some of the flags associated with an interface.
Fields§
§is_loopback: bool
§is_running: bool
§is_point_to_point: bool
§has_default_route: bool
Trait Implementations§
source§impl Clone for InterfaceFlags
impl Clone for InterfaceFlags
source§fn clone(&self) -> InterfaceFlags
fn clone(&self) -> InterfaceFlags
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 InterfaceFlags
impl Debug for InterfaceFlags
source§impl Default for InterfaceFlags
impl Default for InterfaceFlags
source§fn default() -> InterfaceFlags
fn default() -> InterfaceFlags
Returns the “default value” for a type. Read more
source§impl Hash for InterfaceFlags
impl Hash for InterfaceFlags
source§impl Ord for InterfaceFlags
impl Ord for InterfaceFlags
source§fn cmp(&self, other: &InterfaceFlags) -> Ordering
fn cmp(&self, other: &InterfaceFlags) -> Ordering
1.21.0 · 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 PartialEq for InterfaceFlags
impl PartialEq for InterfaceFlags
source§fn eq(&self, other: &InterfaceFlags) -> bool
fn eq(&self, other: &InterfaceFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InterfaceFlags
impl PartialOrd for InterfaceFlags
source§fn partial_cmp(&self, other: &InterfaceFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &InterfaceFlags) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for InterfaceFlags
impl Eq for InterfaceFlags
impl StructuralPartialEq for InterfaceFlags
Auto Trait Implementations§
impl Freeze for InterfaceFlags
impl RefUnwindSafe for InterfaceFlags
impl Send for InterfaceFlags
impl Sync for InterfaceFlags
impl Unpin for InterfaceFlags
impl UnwindSafe for InterfaceFlags
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
source§impl<T> CmpAssign for Twhere
T: Ord,
impl<T> CmpAssign for Twhere
T: Ord,
fn min_assign(&mut self, other: T)
fn max_assign(&mut self, other: T)
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more