#[repr(transparent)]pub struct SecurityPolicy(pub otSecurityPolicy);
Expand description
Functional equivalent of otsys::otSecurityPolicy
.
Tuple Fields§
§0: otSecurityPolicy
Implementations§
Source§impl SecurityPolicy
impl SecurityPolicy
pub fn get_rotation_time_in_hours(&self) -> u16
pub fn is_obtain_network_key_enabled(&self) -> bool
pub fn is_native_commissioning_enabled(&self) -> bool
pub fn is_routers_enabled(&self) -> bool
pub fn is_external_commissioning_enabled(&self) -> bool
pub fn is_commercial_commissioning_enabled(&self) -> bool
pub fn is_autonomous_enrollment_enabled(&self) -> bool
pub fn is_network_key_provisioning_enabled(&self) -> bool
pub fn is_toble_link_enabled(&self) -> bool
pub fn is_non_ccm_routers_enabled(&self) -> bool
pub fn get_version_threshold_for_routing(&self) -> u8
Source§impl SecurityPolicy
impl SecurityPolicy
pub fn set_rotation_time_in_hours(&mut self, hours: u16)
pub fn set_obtain_network_key_enabled(&mut self, x: bool)
pub fn set_native_commissioning_enabled(&mut self, x: bool)
pub fn set_routers_enabled(&mut self, x: bool)
pub fn set_external_commissioning_enabled(&mut self, x: bool)
pub fn set_commercial_commissioning_enabled(&mut self, x: bool)
pub fn set_autonomous_enrollment_enabled(&mut self, x: bool)
pub fn set_network_key_provisioning_enabled(&mut self, x: bool)
pub fn set_toble_link_enabled(&mut self, x: bool)
pub fn set_non_ccm_routers_enabled(&mut self, x: bool)
pub fn set_version_threshold_for_routing(&mut self, x: u8)
Trait Implementations§
Source§impl Clone for SecurityPolicy
impl Clone for SecurityPolicy
Source§fn clone(&self) -> SecurityPolicy
fn clone(&self) -> SecurityPolicy
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 SecurityPolicy
impl Debug for SecurityPolicy
Source§impl Default for SecurityPolicy
impl Default for SecurityPolicy
Source§fn default() -> SecurityPolicy
fn default() -> SecurityPolicy
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a SecurityPolicy> for &'a otSecurityPolicy
impl<'a> From<&'a SecurityPolicy> for &'a otSecurityPolicy
Source§fn from(x: &'a SecurityPolicy) -> Self
fn from(x: &'a SecurityPolicy) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otSecurityPolicy> for &'a SecurityPolicy
impl<'a> From<&'a otSecurityPolicy> for &'a SecurityPolicy
Source§impl From<SecurityPolicy> for otSecurityPolicy
impl From<SecurityPolicy> for otSecurityPolicy
Source§fn from(x: SecurityPolicy) -> Self
fn from(x: SecurityPolicy) -> Self
Converts to this type from the input type.
Source§impl From<otSecurityPolicy> for SecurityPolicy
impl From<otSecurityPolicy> for SecurityPolicy
Source§impl OtCastable for SecurityPolicy
impl OtCastable for SecurityPolicy
Source§fn as_ot_ptr(&self) -> *const Self::OtType
fn as_ot_ptr(&self) -> *const Self::OtType
Returns a pointer to the underlying
Self::OtType
instance.Source§fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
Returns a mutable pointer to the underlying
Self::OtType
instance.Source§unsafe fn ref_from_ot_ptr<'a>(ptr: *const Self::OtType) -> Option<&'a Self>
unsafe fn ref_from_ot_ptr<'a>(ptr: *const Self::OtType) -> Option<&'a Self>
Creates a reference from a pointer to an
Self::OtType
. Read moreSource§unsafe fn mut_from_ot_mut_ptr<'a>(
ptr: *mut Self::OtType,
) -> Option<&'a mut Self>
unsafe fn mut_from_ot_mut_ptr<'a>( ptr: *mut Self::OtType, ) -> Option<&'a mut Self>
Creates a mut reference from a mut pointer to an
Self::OtType
. Read moreSource§fn as_ot_ref(&self) -> &Self::OtType
fn as_ot_ref(&self) -> &Self::OtType
Returns a reference to the original OpenThread type
Self::OtType
.Source§fn as_ot_mut(&mut self) -> &mut Self::OtType
fn as_ot_mut(&mut self) -> &mut Self::OtType
Returns a mutable reference to the original OpenThread type
Self::OtType
.Source§fn ref_from_ot_ref(x: &Self::OtType) -> &Self
fn ref_from_ot_ref(x: &Self::OtType) -> &Self
Casts a reference to the original OpenThread type to a reference to
Self
.Auto Trait Implementations§
impl Freeze for SecurityPolicy
impl RefUnwindSafe for SecurityPolicy
impl Send for SecurityPolicy
impl Sync for SecurityPolicy
impl Unpin for SecurityPolicy
impl UnwindSafe for SecurityPolicy
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
)