Skip to main content

Aib

Struct Aib 

Source
pub struct Aib { /* private fields */ }
Expand description

2.2.7.2 - AIB (APS Information Base Attributes)

Implementations§

Source§

impl Aib

Source

pub fn new() -> Self

Source

pub fn take_dirty(&self) -> u64

Returns and clears the bitmask of fields modified since the last call.

Source

pub fn mark_dirty(&self, id: AibId)

Re-arms the dirty bit of a field, e.g. after a failed store.

Source

pub fn export_field(&self, id: AibId, buf: &mut [u8]) -> Option<usize>

Encodes a single field into buf, returning the encoded length.

Returns None for RAM-only fields (no storage key) or if buf is too small.

Source

pub fn import_field(&self, id: AibId, data: &[u8]) -> bool

Decodes data into a single field without marking it dirty.

Returns false if the data does not parse as the field type, leaving the current value untouched.

Source

pub fn binding_table( &self, ) -> RwLockReadGuard<'_, StorageVec<Binding, MAX_APS_BINDING_TABLE>>

Returns a read guard; do not hold it across an update_* of the same field.

Source

pub fn update_binding_table( &self, f: impl FnOnce(&mut StorageVec<Binding, MAX_APS_BINDING_TABLE>), )

Updates the field in place under its write lock.

Source

pub fn designated_coordinator(&self) -> RwLockReadGuard<'_, bool>

Returns a read guard; do not hold it across an update_* of the same field.

Source

pub fn update_designated_coordinator(&self, f: impl FnOnce(&mut bool))

Updates the field in place under its write lock.

Source

pub fn channel_mask_list( &self, ) -> RwLockReadGuard<'_, StorageVec<IeeeAddress, MAX_APS_CHANNEL_MASK_LIST>>

Returns a read guard; do not hold it across an update_* of the same field.

Source

pub fn update_channel_mask_list( &self, f: impl FnOnce(&mut StorageVec<IeeeAddress, MAX_APS_CHANNEL_MASK_LIST>), )

Updates the field in place under its write lock.

Source

pub fn use_extended_pan_id(&self) -> RwLockReadGuard<'_, IeeeAddress>

Returns a read guard; do not hold it across an update_* of the same field.

Source

pub fn update_use_extended_pan_id(&self, f: impl FnOnce(&mut IeeeAddress))

Updates the field in place under its write lock.

Source

pub fn group_table( &self, ) -> RwLockReadGuard<'_, StorageVec<ApsGroup, MAX_APS_GROUP_TABLE>>

Returns a read guard; do not hold it across an update_* of the same field.

Source

pub fn update_group_table( &self, f: impl FnOnce(&mut StorageVec<ApsGroup, MAX_APS_GROUP_TABLE>), )

Updates the field in place under its write lock.

Source

pub fn non_member_radius(&self) -> RwLockReadGuard<'_, u8>

Returns a read guard; do not hold it across an update_* of the same field.

Source

pub fn update_non_member_radius(&self, f: impl FnOnce(&mut u8))

Updates the field in place under its write lock.

Source

pub fn use_insecure_join(&self) -> RwLockReadGuard<'_, bool>

Returns a read guard; do not hold it across an update_* of the same field.

Source

pub fn update_use_insecure_join(&self, f: impl FnOnce(&mut bool))

Updates the field in place under its write lock.

Source

pub fn interframe_delay(&self) -> RwLockReadGuard<'_, u8>

Returns a read guard; do not hold it across an update_* of the same field.

Source

pub fn update_interframe_delay(&self, f: impl FnOnce(&mut u8))

Updates the field in place under its write lock.

Source

pub fn last_channel_energy(&self) -> RwLockReadGuard<'_, u8>

Returns a read guard; do not hold it across an update_* of the same field.

Source

pub fn update_last_channel_energy(&self, f: impl FnOnce(&mut u8))

Updates the field in place under its write lock.

Source

pub fn last_channel_failure_rate(&self) -> RwLockReadGuard<'_, u8>

Returns a read guard; do not hold it across an update_* of the same field.

Source

pub fn update_last_channel_failure_rate(&self, f: impl FnOnce(&mut u8))

Updates the field in place under its write lock.

Source

pub fn channel_timer(&self) -> RwLockReadGuard<'_, u8>

Returns a read guard; do not hold it across an update_* of the same field.

Source

pub fn update_channel_timer(&self, f: impl FnOnce(&mut u8))

Updates the field in place under its write lock.

Source

pub fn max_window_size( &self, ) -> RwLockReadGuard<'_, StorageVec<ApsWindowSize, MAX_APS_MAX_WINDOW_SIZE>>

Returns a read guard; do not hold it across an update_* of the same field.

Source

pub fn update_max_window_size( &self, f: impl FnOnce(&mut StorageVec<ApsWindowSize, MAX_APS_MAX_WINDOW_SIZE>), )

Updates the field in place under its write lock.

Source

pub fn parent_announce_timer(&self) -> RwLockReadGuard<'_, u8>

Returns a read guard; do not hold it across an update_* of the same field.

Source

pub fn update_parent_announce_timer(&self, f: impl FnOnce(&mut u8))

Updates the field in place under its write lock.

Source

pub fn device_key_pair_set( &self, ) -> RwLockReadGuard<'_, StorageVec<DeviceKeyPairDescriptor, MAX_APS_DEVICE_KEY_PAIR_SET>>

Returns a read guard; do not hold it across an update_* of the same field.

Source

pub fn update_device_key_pair_set( &self, f: impl FnOnce(&mut StorageVec<DeviceKeyPairDescriptor, MAX_APS_DEVICE_KEY_PAIR_SET>), )

Updates the field in place under its write lock.

Source

pub fn trust_center_address(&self) -> RwLockReadGuard<'_, IeeeAddress>

Returns a read guard; do not hold it across an update_* of the same field.

Source

pub fn update_trust_center_address(&self, f: impl FnOnce(&mut IeeeAddress))

Updates the field in place under its write lock.

Source

pub fn security_timeout_period(&self) -> RwLockReadGuard<'_, u16>

Returns a read guard; do not hold it across an update_* of the same field.

Source

pub fn update_security_timeout_period(&self, f: impl FnOnce(&mut u16))

Updates the field in place under its write lock.

Auto Trait Implementations§

§

impl !Freeze for Aib

§

impl !RefUnwindSafe for Aib

§

impl Send for Aib

§

impl Sync for Aib

§

impl Unpin for Aib

§

impl UnsafeUnpin for Aib

§

impl UnwindSafe for Aib

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.