#[repr(transparent)]pub struct OperationalDataset(pub otOperationalDataset);
Expand description
Functional equivalent of otsys::otOperationalDataset
.
Tuple Fields§
§0: otOperationalDataset
Implementations§
Source§impl OperationalDataset
impl OperationalDataset
Sourcepub fn empty() -> OperationalDataset
pub fn empty() -> OperationalDataset
Returns an empty operational dataset.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Returns true if this dataset is considered “complete”
Source§impl OperationalDataset
impl OperationalDataset
Sourcepub fn get_channel(&self) -> Option<ChannelIndex>
pub fn get_channel(&self) -> Option<ChannelIndex>
Returns the channel index, if present.
Sourcepub fn get_channel_mask(&self) -> Option<ChannelMask>
pub fn get_channel_mask(&self) -> Option<ChannelMask>
Returns the channel mask, if present.
Sourcepub fn get_extended_pan_id(&self) -> Option<&ExtendedPanId>
pub fn get_extended_pan_id(&self) -> Option<&ExtendedPanId>
Returns the extended PAN-ID, if present.
Sourcepub fn get_network_key(&self) -> Option<&NetworkKey>
pub fn get_network_key(&self) -> Option<&NetworkKey>
Returns the network key, if present.
Sourcepub fn get_network_name(&self) -> Option<&NetworkName>
pub fn get_network_name(&self) -> Option<&NetworkName>
Returns the network name, if present.
Sourcepub fn get_pan_id(&self) -> Option<PanId>
pub fn get_pan_id(&self) -> Option<PanId>
Returns the PAN-ID, if present.
Sourcepub fn get_active_timestamp(&self) -> Option<Timestamp>
pub fn get_active_timestamp(&self) -> Option<Timestamp>
Returns the active timestamp, if present.
Sourcepub fn get_pending_timestamp(&self) -> Option<Timestamp>
pub fn get_pending_timestamp(&self) -> Option<Timestamp>
Returns the pending timestamp, if present.
Sourcepub fn get_security_policy(&self) -> Option<&SecurityPolicy>
pub fn get_security_policy(&self) -> Option<&SecurityPolicy>
Returns the security policy, if present.
Sourcepub fn get_mesh_local_prefix(&self) -> Option<&MeshLocalPrefix>
pub fn get_mesh_local_prefix(&self) -> Option<&MeshLocalPrefix>
Returns the mesh-local prefix, if present.
Source§impl OperationalDataset
impl OperationalDataset
Sourcepub fn set_channel(&mut self, opt: Option<ChannelIndex>)
pub fn set_channel(&mut self, opt: Option<ChannelIndex>)
Sets or clears the channel index.
Sourcepub fn set_channel_mask(&mut self, opt: Option<ChannelMask>)
pub fn set_channel_mask(&mut self, opt: Option<ChannelMask>)
Sets or clears the channel mask.
Sourcepub fn set_extended_pan_id(&mut self, opt: Option<&ExtendedPanId>)
pub fn set_extended_pan_id(&mut self, opt: Option<&ExtendedPanId>)
Sets or clears the extended PAN-ID.
Sourcepub fn set_network_key(&mut self, opt: Option<&NetworkKey>)
pub fn set_network_key(&mut self, opt: Option<&NetworkKey>)
Sets or clears the network key.
Sourcepub fn set_network_name(&mut self, opt: Option<&NetworkName>)
pub fn set_network_name(&mut self, opt: Option<&NetworkName>)
Sets or clears the network name.
Sourcepub fn set_pan_id(&mut self, opt: Option<PanId>)
pub fn set_pan_id(&mut self, opt: Option<PanId>)
Sets or clears the PAN-ID.
Sourcepub fn set_active_timestamp(&mut self, opt: Option<Timestamp>)
pub fn set_active_timestamp(&mut self, opt: Option<Timestamp>)
Sets or clears the active timestamp
Sourcepub fn set_pending_timestamp(&mut self, opt: Option<Timestamp>)
pub fn set_pending_timestamp(&mut self, opt: Option<Timestamp>)
Sets or clears the pending timestamp.
Sourcepub fn set_security_policy(&mut self, opt: Option<SecurityPolicy>)
pub fn set_security_policy(&mut self, opt: Option<SecurityPolicy>)
Sets or clears the security policy.
Sourcepub fn set_mesh_local_prefix(&mut self, opt: Option<&MeshLocalPrefix>)
pub fn set_mesh_local_prefix(&mut self, opt: Option<&MeshLocalPrefix>)
Sets or clears the mesh-local prefix.
Trait Implementations§
Source§impl Clone for OperationalDataset
impl Clone for OperationalDataset
Source§fn clone(&self) -> OperationalDataset
fn clone(&self) -> OperationalDataset
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OperationalDataset
impl Debug for OperationalDataset
Source§impl Default for OperationalDataset
impl Default for OperationalDataset
Source§fn default() -> OperationalDataset
fn default() -> OperationalDataset
Source§impl<'a> From<&'a OperationalDataset> for &'a otOperationalDataset
impl<'a> From<&'a OperationalDataset> for &'a otOperationalDataset
Source§fn from(x: &'a OperationalDataset) -> Self
fn from(x: &'a OperationalDataset) -> Self
Source§impl<'a> From<&'a otOperationalDataset> for &'a OperationalDataset
impl<'a> From<&'a otOperationalDataset> for &'a OperationalDataset
Source§impl From<OperationalDataset> for otOperationalDataset
impl From<OperationalDataset> for otOperationalDataset
Source§fn from(x: OperationalDataset) -> Self
fn from(x: OperationalDataset) -> Self
Source§impl From<otOperationalDataset> for OperationalDataset
impl From<otOperationalDataset> for OperationalDataset
Source§impl OtCastable for OperationalDataset
impl OtCastable for OperationalDataset
Source§fn as_ot_ptr(&self) -> *const Self::OtType
fn as_ot_ptr(&self) -> *const Self::OtType
Self::OtType
instance.Source§fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
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>
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>
Self::OtType
. Read moreSource§fn as_ot_ref(&self) -> &Self::OtType
fn as_ot_ref(&self) -> &Self::OtType
Self::OtType
.Source§fn as_ot_mut(&mut self) -> &mut Self::OtType
fn as_ot_mut(&mut self) -> &mut Self::OtType
Self::OtType
.Source§fn ref_from_ot_ref(x: &Self::OtType) -> &Self
fn ref_from_ot_ref(x: &Self::OtType) -> &Self
Self
.