#[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) -> i32
pub fn set_mPreference(&mut self, val: i32)
pub unsafe fn mPreference_raw(this: *const otExternalRouteConfig) -> i32
pub unsafe fn set_mPreference_raw(this: *mut otExternalRouteConfig, val: i32)
pub fn mNat64(&self) -> bool
pub fn set_mNat64(&mut self, val: bool)
pub unsafe fn mNat64_raw(this: *const otExternalRouteConfig) -> bool
pub unsafe fn set_mNat64_raw(this: *mut otExternalRouteConfig, val: bool)
pub fn mStable(&self) -> bool
pub fn set_mStable(&mut self, val: bool)
pub unsafe fn mStable_raw(this: *const otExternalRouteConfig) -> bool
pub unsafe fn set_mStable_raw(this: *mut otExternalRouteConfig, val: bool)
pub fn mNextHopIsThisDevice(&self) -> bool
pub fn set_mNextHopIsThisDevice(&mut self, val: bool)
pub unsafe fn mNextHopIsThisDevice_raw( this: *const otExternalRouteConfig, ) -> bool
pub unsafe fn set_mNextHopIsThisDevice_raw( this: *mut otExternalRouteConfig, val: bool, )
pub fn mAdvPio(&self) -> bool
pub fn set_mAdvPio(&mut self, val: bool)
pub unsafe fn mAdvPio_raw(this: *const otExternalRouteConfig) -> bool
pub unsafe fn set_mAdvPio_raw(this: *mut otExternalRouteConfig, val: bool)
pub fn new_bitfield_1( mPreference: i32, 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 duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for otExternalRouteConfig
Source§impl Default for otExternalRouteConfig
impl Default for otExternalRouteConfig
Source§fn default() -> otExternalRouteConfig
fn default() -> otExternalRouteConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for otExternalRouteConfig
impl RefUnwindSafe for otExternalRouteConfig
impl Send for otExternalRouteConfig
impl Sync for otExternalRouteConfig
impl Unpin for otExternalRouteConfig
impl UnsafeUnpin for otExternalRouteConfig
impl UnwindSafe for otExternalRouteConfig
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, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)