#[repr(C, align(4))]pub struct otExternalRouteConfig {
pub mPrefix: otIp6Prefix,
pub mRloc16: u16,
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
pub __bindgen_padding_0: [u8; 3],
}Expand description
This structure represents an External Route configuration.
Fields§
§mPrefix: otIp6PrefixThe prefix for the off-mesh route.
mRloc16: u16The Rloc associated with the external route entry.
This value is ignored when adding an external route. For any added route, the device’s Rloc is used.
_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>§__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 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 new_bitfield_1( mPreference: c_int, mStable: bool, mNextHopIsThisDevice: bool, ) -> __BindgenBitfieldUnit<[u8; 1], u8>
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 moreimpl 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