pub struct AddressOrigin(pub u8);
Expand description
Type representing the origin of an address
Tuple Fields§
§0: u8
Implementations§
Source§impl AddressOrigin
impl AddressOrigin
Sourcepub const DHCPV6: AddressOrigin
pub const DHCPV6: AddressOrigin
Functional equivalent of
otsys::OT_ADDRESS_ORIGIN_DHCPV6
.
Sourcepub const MANUAL: AddressOrigin
pub const MANUAL: AddressOrigin
Functional equivalent of
otsys::OT_ADDRESS_ORIGIN_MANUAL
.
Sourcepub const SLAAC: AddressOrigin
pub const SLAAC: AddressOrigin
Functional equivalent of
otsys::OT_ADDRESS_ORIGIN_SLAAC
.
Sourcepub const THREAD: AddressOrigin
pub const THREAD: AddressOrigin
Functional equivalent of
otsys::OT_ADDRESS_ORIGIN_THREAD
.
Trait Implementations§
Source§impl Clone for AddressOrigin
impl Clone for AddressOrigin
Source§fn clone(&self) -> AddressOrigin
fn clone(&self) -> AddressOrigin
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 AddressOrigin
impl Debug for AddressOrigin
Source§impl Ord for AddressOrigin
impl Ord for AddressOrigin
Source§fn cmp(&self, other: &AddressOrigin) -> Ordering
fn cmp(&self, other: &AddressOrigin) -> 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 AddressOrigin
impl PartialEq for AddressOrigin
Source§impl PartialOrd for AddressOrigin
impl PartialOrd for AddressOrigin
impl Copy for AddressOrigin
impl Eq for AddressOrigin
impl StructuralPartialEq for AddressOrigin
Auto Trait Implementations§
impl Freeze for AddressOrigin
impl RefUnwindSafe for AddressOrigin
impl Send for AddressOrigin
impl Sync for AddressOrigin
impl Unpin for AddressOrigin
impl UnwindSafe for AddressOrigin
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for 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