#[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 unsafe fn mObtainNetworkKeyEnabled_raw(this: *const Self) -> bool
pub unsafe fn set_mObtainNetworkKeyEnabled_raw(this: *mut Self, val: bool)
pub fn mNativeCommissioningEnabled(&self) -> bool
pub fn set_mNativeCommissioningEnabled(&mut self, val: bool)
pub unsafe fn mNativeCommissioningEnabled_raw(this: *const Self) -> bool
pub unsafe fn set_mNativeCommissioningEnabled_raw(this: *mut Self, val: bool)
pub fn mRoutersEnabled(&self) -> bool
pub fn set_mRoutersEnabled(&mut self, val: bool)
pub unsafe fn mRoutersEnabled_raw(this: *const Self) -> bool
pub unsafe fn set_mRoutersEnabled_raw(this: *mut Self, val: bool)
pub fn mExternalCommissioningEnabled(&self) -> bool
pub fn set_mExternalCommissioningEnabled(&mut self, val: bool)
pub unsafe fn mExternalCommissioningEnabled_raw(this: *const Self) -> bool
pub unsafe fn set_mExternalCommissioningEnabled_raw(this: *mut Self, val: bool)
pub fn mCommercialCommissioningEnabled(&self) -> bool
pub fn set_mCommercialCommissioningEnabled(&mut self, val: bool)
pub unsafe fn mCommercialCommissioningEnabled_raw(this: *const Self) -> bool
pub unsafe fn set_mCommercialCommissioningEnabled_raw( this: *mut Self, val: bool, )
pub fn mAutonomousEnrollmentEnabled(&self) -> bool
pub fn set_mAutonomousEnrollmentEnabled(&mut self, val: bool)
pub unsafe fn mAutonomousEnrollmentEnabled_raw(this: *const Self) -> bool
pub unsafe fn set_mAutonomousEnrollmentEnabled_raw(this: *mut Self, val: bool)
pub fn mNetworkKeyProvisioningEnabled(&self) -> bool
pub fn set_mNetworkKeyProvisioningEnabled(&mut self, val: bool)
pub unsafe fn mNetworkKeyProvisioningEnabled_raw(this: *const Self) -> bool
pub unsafe fn set_mNetworkKeyProvisioningEnabled_raw(this: *mut Self, val: bool)
pub fn mTobleLinkEnabled(&self) -> bool
pub fn set_mTobleLinkEnabled(&mut self, val: bool)
pub unsafe fn mTobleLinkEnabled_raw(this: *const Self) -> bool
pub unsafe fn set_mTobleLinkEnabled_raw(this: *mut Self, val: bool)
pub fn mNonCcmRoutersEnabled(&self) -> bool
pub fn set_mNonCcmRoutersEnabled(&mut self, val: bool)
pub unsafe fn mNonCcmRoutersEnabled_raw(this: *const Self) -> bool
pub unsafe fn set_mNonCcmRoutersEnabled_raw(this: *mut Self, val: bool)
pub fn mVersionThresholdForRouting(&self) -> u8
pub fn set_mVersionThresholdForRouting(&mut self, val: u8)
pub unsafe fn mVersionThresholdForRouting_raw(this: *const Self) -> u8
pub unsafe fn set_mVersionThresholdForRouting_raw(this: *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§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§
§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, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)