Skip to main content

OperationalDataset

Struct OperationalDataset 

Source
pub struct OperationalDataset { /* private fields */ }

Implementations§

Source§

impl OperationalDataset

Source

pub fn random() -> Result<Self, TwineCodecError>

Generate a new random Active Operational Dataset

Source

pub fn active_timestamp(&self) -> Option<Timestamp>

Source

pub fn set_active_timestamp( &mut self, timestamp: Timestamp, ) -> Result<(), TwineCodecError>

Source

pub fn pending_timestamp(&self) -> Option<Timestamp>

Source

pub fn delay_timer(&self) -> Option<DelayTimer>

Source

pub fn channel(&self) -> Option<Channel>

Source

pub fn pan_id(&self) -> Option<PanId>

Source

pub fn channel_mask(&self) -> Option<ChannelMask>

Source

pub fn extended_pan_id(&self) -> Option<ExtendedPanId>

Source

pub fn network_name(&self) -> Option<NetworkName>

Source

pub fn pskc(&self) -> Option<Pskc>

Source

pub fn network_key(&self) -> Option<NetworkKey>

Source

pub fn mesh_local_prefix(&self) -> Option<MeshLocalPrefix>

Source

pub fn security_policy(&self) -> Option<SecurityPolicy>

Source

pub fn pretty_fmt(&self)

Source

pub fn iter(&self) -> OperationalDatasetIter<'_>

Source

pub fn as_hex_string(&self) -> String

Trait Implementations§

Source§

impl Debug for OperationalDataset

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for OperationalDataset

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromStr for OperationalDataset

Source§

type Err = TwineCodecError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.