Struct ConfigData

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

Low-level configuration parameters for the controller.

Implementations§

Source§

impl ConfigData

Source

pub const MAX_LENGTH: usize = 46usize

Maximum length needed to serialize the data.

Source

pub fn copy_into_slice(&self, bytes: &mut [u8]) -> usize

Serializes the data into the given buffer.

Returns the number of valid bytes in the buffer.

§Panics

The buffer must be large enough to support the serialized data (at least MAX_LENGTH bytes).

Source

pub fn public_address(addr: BdAddr) -> ConfigDataDiversifierBuilder

Builder for ConfigData.

The controller allows us to write any contiguous portion of the ConfigData structure in write_config_data. The builder associated functions allow us to start with any field, and the returned builder allows only either chaining the next field or building the structure to write.

Source

pub fn random_address(addr: BdAddr) -> ConfigDataDiversifierBuilder

Builder for ConfigData.

The controller allows us to write any contiguous portion of the ConfigData structure in write_config_data. The builder associated functions allow us to start with any field, and the returned builder allows only either chaining the next field or building the structure to write.

Source

pub fn diversifier(d: u16) -> ConfigDataEncryptionRootBuilder

Builder for ConfigData.

The controller allows us to write any contiguous portion of the ConfigData structure in write_config_data. The builder associated functions allow us to start with any field, and the returned builder allows only either chaining the next field or building the structure to write.

Source

pub fn encryption_root(key: &EncryptionKey) -> ConfigDataIdentityRootBuilder

Builder for ConfigData.

The controller allows us to write any contiguous portion of the ConfigData structure in write_config_data. The builder associated functions allow us to start with any field, and the returned builder allows only either chaining the next field or building the structure to write.

Source

pub fn identity_root(key: &EncryptionKey) -> ConfigDataLinkLayerOnlyBuilder

Builder for ConfigData.

The controller allows us to write any contiguous portion of the ConfigData structure in write_config_data. The builder associated functions allow us to start with any field, and the returned builder allows only either chaining the next field or building the structure to write.

Builder for ConfigData.

The controller allows us to write any contiguous portion of the ConfigData structure in write_config_data. The builder associated functions allow us to start with any field, and the returned builder allows only either chaining the next field or building the structure to write.

Source

pub fn role(role: Role) -> ConfigDataCompleteBuilder

Builder for ConfigData.

The controller allows us to write any contiguous portion of the ConfigData structure in write_config_data. The builder associated functions allow us to start with any field, and the returned builder allows only either chaining the next field or building the structure to write.

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, 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.