#[repr(C, align(4))]pub struct otBorderRouterConfig {
pub mPrefix: otIp6Prefix,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>,
pub mRloc16: u16,
}
Expand description
Represents a Border Router configuration.
Fields§
§mPrefix: otIp6Prefix
< The IPv6 prefix.
_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>
§mRloc16: u16
< The border router’s RLOC16 (value ignored on config add).
Implementations§
Source§impl otBorderRouterConfig
impl otBorderRouterConfig
pub fn mPreference(&self) -> c_int
pub fn set_mPreference(&mut self, val: c_int)
pub fn mPreferred(&self) -> bool
pub fn set_mPreferred(&mut self, val: bool)
pub fn mSlaac(&self) -> bool
pub fn set_mSlaac(&mut self, val: bool)
pub fn mDhcp(&self) -> bool
pub fn set_mDhcp(&mut self, val: bool)
pub fn mConfigure(&self) -> bool
pub fn set_mConfigure(&mut self, val: bool)
pub fn mDefaultRoute(&self) -> bool
pub fn set_mDefaultRoute(&mut self, val: bool)
pub fn mOnMesh(&self) -> bool
pub fn set_mOnMesh(&mut self, val: bool)
pub fn mStable(&self) -> bool
pub fn set_mStable(&mut self, val: bool)
pub fn mNdDns(&self) -> bool
pub fn set_mNdDns(&mut self, val: bool)
pub fn mDp(&self) -> bool
pub fn set_mDp(&mut self, val: bool)
pub fn new_bitfield_1( mPreference: c_int, mPreferred: bool, mSlaac: bool, mDhcp: bool, mConfigure: bool, mDefaultRoute: bool, mOnMesh: bool, mStable: bool, mNdDns: bool, mDp: bool, ) -> __BindgenBitfieldUnit<[u8; 2]>
Trait Implementations§
Source§impl Clone for otBorderRouterConfig
impl Clone for otBorderRouterConfig
Source§fn clone(&self) -> otBorderRouterConfig
fn clone(&self) -> otBorderRouterConfig
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 Default for otBorderRouterConfig
impl Default for otBorderRouterConfig
impl Copy for otBorderRouterConfig
Auto Trait Implementations§
impl Freeze for otBorderRouterConfig
impl RefUnwindSafe for otBorderRouterConfig
impl Send for otBorderRouterConfig
impl Sync for otBorderRouterConfig
impl Unpin for otBorderRouterConfig
impl UnwindSafe for otBorderRouterConfig
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
)