#[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; 3],
}
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; 3]
Implementations§
Source§impl otIp6AddressInfo
impl otIp6AddressInfo
pub fn mScope(&self) -> u8
pub fn set_mScope(&mut self, val: u8)
pub fn mPreferred(&self) -> bool
pub fn set_mPreferred(&mut self, val: bool)
pub fn mMeshLocal(&self) -> bool
pub fn set_mMeshLocal(&mut self, 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 · 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 otIp6AddressInfo
impl Debug for otIp6AddressInfo
Source§impl Default for otIp6AddressInfo
impl Default for otIp6AddressInfo
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§
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)