#[repr(C, align(4))]pub struct otExternalRouteConfig {
pub mPrefix: otIp6Prefix,
pub mRloc16: u16,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub __bindgen_padding_0: [u8; 3],
}
Expand description
Represents an External Route configuration.
Fields§
§mPrefix: otIp6Prefix
< The IPv6 prefix.
mRloc16: u16
< The border router’s RLOC16 (value ignored on config add).
_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
§__bindgen_padding_0: [u8; 3]
Implementations§
Source§impl otExternalRouteConfig
impl otExternalRouteConfig
pub fn mPreference(&self) -> c_int
pub fn set_mPreference(&mut self, val: c_int)
pub fn mNat64(&self) -> bool
pub fn set_mNat64(&mut self, val: bool)
pub fn mStable(&self) -> bool
pub fn set_mStable(&mut self, val: bool)
pub fn mNextHopIsThisDevice(&self) -> bool
pub fn set_mNextHopIsThisDevice(&mut self, val: bool)
pub fn mAdvPio(&self) -> bool
pub fn set_mAdvPio(&mut self, val: bool)
pub fn new_bitfield_1( mPreference: c_int, mNat64: bool, mStable: bool, mNextHopIsThisDevice: bool, mAdvPio: bool, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for otExternalRouteConfig
impl Clone for otExternalRouteConfig
Source§fn clone(&self) -> otExternalRouteConfig
fn clone(&self) -> otExternalRouteConfig
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 otExternalRouteConfig
impl Default for otExternalRouteConfig
impl Copy for otExternalRouteConfig
Auto Trait Implementations§
impl Freeze for otExternalRouteConfig
impl RefUnwindSafe for otExternalRouteConfig
impl Send for otExternalRouteConfig
impl Sync for otExternalRouteConfig
impl Unpin for otExternalRouteConfig
impl UnwindSafe for otExternalRouteConfig
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
)