Struct openthread_sys::otSecurityPolicy
source · #[repr(C)]pub struct otSecurityPolicy {
pub mRotationTime: u16,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>,
}
Expand description
Represent Security Policy.
Fields§
§mRotationTime: u16
< The value for thrKeyRotation in units of hours.
_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>
Implementations§
source§impl otSecurityPolicy
impl otSecurityPolicy
pub fn mObtainNetworkKeyEnabled(&self) -> bool
pub fn set_mObtainNetworkKeyEnabled(&mut self, val: bool)
pub fn mNativeCommissioningEnabled(&self) -> bool
pub fn set_mNativeCommissioningEnabled(&mut self, val: bool)
pub fn mRoutersEnabled(&self) -> bool
pub fn set_mRoutersEnabled(&mut self, val: bool)
pub fn mExternalCommissioningEnabled(&self) -> bool
pub fn set_mExternalCommissioningEnabled(&mut self, val: bool)
pub fn mCommercialCommissioningEnabled(&self) -> bool
pub fn set_mCommercialCommissioningEnabled(&mut self, val: bool)
pub fn mAutonomousEnrollmentEnabled(&self) -> bool
pub fn set_mAutonomousEnrollmentEnabled(&mut self, val: bool)
pub fn mNetworkKeyProvisioningEnabled(&self) -> bool
pub fn set_mNetworkKeyProvisioningEnabled(&mut self, val: bool)
pub fn mTobleLinkEnabled(&self) -> bool
pub fn set_mTobleLinkEnabled(&mut self, val: bool)
pub fn mNonCcmRoutersEnabled(&self) -> bool
pub fn set_mNonCcmRoutersEnabled(&mut self, val: bool)
pub fn mVersionThresholdForRouting(&self) -> u8
pub fn set_mVersionThresholdForRouting(&mut self, val: u8)
pub fn new_bitfield_1( mObtainNetworkKeyEnabled: bool, mNativeCommissioningEnabled: bool, mRoutersEnabled: bool, mExternalCommissioningEnabled: bool, mCommercialCommissioningEnabled: bool, mAutonomousEnrollmentEnabled: bool, mNetworkKeyProvisioningEnabled: bool, mTobleLinkEnabled: bool, mNonCcmRoutersEnabled: bool, mVersionThresholdForRouting: u8, ) -> __BindgenBitfieldUnit<[u8; 2]>
Trait Implementations§
source§impl Clone for otSecurityPolicy
impl Clone for otSecurityPolicy
source§fn clone(&self) -> otSecurityPolicy
fn clone(&self) -> otSecurityPolicy
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 Debug for otSecurityPolicy
impl Debug for otSecurityPolicy
source§impl Default for otSecurityPolicy
impl Default for otSecurityPolicy
source§fn default() -> otSecurityPolicy
fn default() -> otSecurityPolicy
Returns the “default value” for a type. Read more
impl Copy for otSecurityPolicy
Auto Trait Implementations§
impl Freeze for otSecurityPolicy
impl RefUnwindSafe for otSecurityPolicy
impl Send for otSecurityPolicy
impl Sync for otSecurityPolicy
impl Unpin for otSecurityPolicy
impl UnwindSafe for otSecurityPolicy
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)