#[repr(C)]pub struct otIp6AddressInfo {
pub mAddress: *const otIp6Address,
pub mPrefixLength: u8,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub __bindgen_padding_0: u16,
}
Expand description
Represents IPv6 address information.
Fields§
§mAddress: *const otIp6Address
< A pointer to the IPv6 address.
mPrefixLength: u8
< The prefix length of mAddress if it is a unicast address.
_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
§__bindgen_padding_0: u16
Implementations§
Source§impl otIp6AddressInfo
impl otIp6AddressInfo
pub fn mScope(&self) -> u8
pub fn set_mScope(&mut self, val: u8)
pub unsafe fn mScope_raw(this: *const otIp6AddressInfo) -> u8
pub unsafe fn set_mScope_raw(this: *mut otIp6AddressInfo, val: u8)
pub fn mPreferred(&self) -> bool
pub fn set_mPreferred(&mut self, val: bool)
pub unsafe fn mPreferred_raw(this: *const otIp6AddressInfo) -> bool
pub unsafe fn set_mPreferred_raw(this: *mut otIp6AddressInfo, val: bool)
pub fn mMeshLocal(&self) -> bool
pub fn set_mMeshLocal(&mut self, val: bool)
pub unsafe fn mMeshLocal_raw(this: *const otIp6AddressInfo) -> bool
pub unsafe fn set_mMeshLocal_raw(this: *mut otIp6AddressInfo, val: bool)
pub fn new_bitfield_1( mScope: u8, mPreferred: bool, mMeshLocal: bool, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for otIp6AddressInfo
impl Clone for otIp6AddressInfo
Source§fn clone(&self) -> otIp6AddressInfo
fn clone(&self) -> otIp6AddressInfo
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for otIp6AddressInfo
impl Debug for otIp6AddressInfo
Source§impl Default for otIp6AddressInfo
impl Default for otIp6AddressInfo
Source§fn default() -> otIp6AddressInfo
fn default() -> otIp6AddressInfo
Returns the “default value” for a type. Read more
impl Copy for otIp6AddressInfo
Auto Trait Implementations§
impl Freeze for otIp6AddressInfo
impl RefUnwindSafe for otIp6AddressInfo
impl !Send for otIp6AddressInfo
impl !Sync for otIp6AddressInfo
impl Unpin for otIp6AddressInfo
impl UnwindSafe for otIp6AddressInfo
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)