#[repr(C)]pub struct otHistoryTrackerUnicastAddressInfo {
pub mAddress: otIp6Address,
pub mPrefixLength: u8,
pub mAddressOrigin: u8,
pub mEvent: otHistoryTrackerAddressEvent,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub __bindgen_padding_0: [u8; 3],
}Expand description
Represent a unicast IPv6 address info.
Fields§
§mAddress: otIp6Address< The unicast IPv6 address.
mPrefixLength: u8< The Prefix length (in bits).
mAddressOrigin: u8< The address origin (OT_ADDRESS_ORIGIN_* constants).
mEvent: otHistoryTrackerAddressEvent< Indicates the event (address is added/removed).
_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§__bindgen_padding_0: [u8; 3]Implementations§
Source§impl otHistoryTrackerUnicastAddressInfo
impl otHistoryTrackerUnicastAddressInfo
pub fn mScope(&self) -> u8
pub fn set_mScope(&mut self, val: u8)
pub unsafe fn mScope_raw(this: *const Self) -> u8
pub unsafe fn set_mScope_raw(this: *mut Self, val: u8)
pub fn mPreferred(&self) -> bool
pub fn set_mPreferred(&mut self, val: bool)
pub unsafe fn mPreferred_raw(this: *const Self) -> bool
pub unsafe fn set_mPreferred_raw(this: *mut Self, val: bool)
pub fn mValid(&self) -> bool
pub fn set_mValid(&mut self, val: bool)
pub unsafe fn mValid_raw(this: *const Self) -> bool
pub unsafe fn set_mValid_raw(this: *mut Self, val: bool)
pub fn mRloc(&self) -> bool
pub fn set_mRloc(&mut self, val: bool)
pub unsafe fn mRloc_raw(this: *const Self) -> bool
pub unsafe fn set_mRloc_raw(this: *mut Self, val: bool)
pub fn new_bitfield_1( mScope: u8, mPreferred: bool, mValid: bool, mRloc: bool, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for otHistoryTrackerUnicastAddressInfo
impl Clone for otHistoryTrackerUnicastAddressInfo
Source§fn clone(&self) -> otHistoryTrackerUnicastAddressInfo
fn clone(&self) -> otHistoryTrackerUnicastAddressInfo
Returns a duplicate 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 moreimpl Copy for otHistoryTrackerUnicastAddressInfo
Auto Trait Implementations§
impl Freeze for otHistoryTrackerUnicastAddressInfo
impl RefUnwindSafe for otHistoryTrackerUnicastAddressInfo
impl Send for otHistoryTrackerUnicastAddressInfo
impl Sync for otHistoryTrackerUnicastAddressInfo
impl Unpin for otHistoryTrackerUnicastAddressInfo
impl UnsafeUnpin for otHistoryTrackerUnicastAddressInfo
impl UnwindSafe for otHistoryTrackerUnicastAddressInfo
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