#[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 unsafe fn mPreference_raw(this: *const Self) -> c_int
pub unsafe fn set_mPreference_raw(this: *mut Self, val: c_int)
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 mSlaac(&self) -> bool
pub fn set_mSlaac(&mut self, val: bool)
pub unsafe fn mSlaac_raw(this: *const Self) -> bool
pub unsafe fn set_mSlaac_raw(this: *mut Self, val: bool)
pub fn mDhcp(&self) -> bool
pub fn set_mDhcp(&mut self, val: bool)
pub unsafe fn mDhcp_raw(this: *const Self) -> bool
pub unsafe fn set_mDhcp_raw(this: *mut Self, val: bool)
pub fn mConfigure(&self) -> bool
pub fn set_mConfigure(&mut self, val: bool)
pub unsafe fn mConfigure_raw(this: *const Self) -> bool
pub unsafe fn set_mConfigure_raw(this: *mut Self, val: bool)
pub fn mDefaultRoute(&self) -> bool
pub fn set_mDefaultRoute(&mut self, val: bool)
pub unsafe fn mDefaultRoute_raw(this: *const Self) -> bool
pub unsafe fn set_mDefaultRoute_raw(this: *mut Self, val: bool)
pub fn mOnMesh(&self) -> bool
pub fn set_mOnMesh(&mut self, val: bool)
pub unsafe fn mOnMesh_raw(this: *const Self) -> bool
pub unsafe fn set_mOnMesh_raw(this: *mut Self, val: bool)
pub fn mStable(&self) -> bool
pub fn set_mStable(&mut self, val: bool)
pub unsafe fn mStable_raw(this: *const Self) -> bool
pub unsafe fn set_mStable_raw(this: *mut Self, val: bool)
pub fn mNdDns(&self) -> bool
pub fn set_mNdDns(&mut self, val: bool)
pub unsafe fn mNdDns_raw(this: *const Self) -> bool
pub unsafe fn set_mNdDns_raw(this: *mut Self, val: bool)
pub fn mDp(&self) -> bool
pub fn set_mDp(&mut self, val: bool)
pub unsafe fn mDp_raw(this: *const Self) -> bool
pub unsafe fn set_mDp_raw(this: *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