Struct ConnectionParameters

Source
pub struct ConnectionParameters {
    pub scan_window: ScanWindow,
    pub initiator_filter_policy: ConnectionFilterPolicy,
    pub peer_address: PeerAddrType,
    pub own_address_type: OwnAddressType,
    pub conn_interval: ConnectionInterval,
    pub expected_connection_length: ExpectedConnectionLength,
}
Expand description

Parameters for the le_create_connection event.

Fields§

§scan_window: ScanWindow

Recommendation from the host on how frequently the Controller should scan.

§initiator_filter_policy: ConnectionFilterPolicy

Determines whether the White List is used. If the White List is not used, peer_address specifies the address type and address of the advertising device to connect to.

§peer_address: PeerAddrType

Indicates the type and value of the address used in the connectable advertisement sent by the peer. The Host shall not use PublicIdentityAddress or RandomIdentityAddress (both introduced in v4.2) if both the Host and the Controller support the le_set_privacy_mode command (introduced in v5.0). If a Controller that supports the LE Set Privacy Mode command receives the le_create_connection command with peer_address set to either PublicIdentityAddress or RandomIdentityAddress, it may use either device privacy mode or network privacy mode for that peer device.

§own_address_type: OwnAddressType

The type of address being used in the connection request packets.

If this is Random and the random address for the device has not been initialized, the Controller shall return the error code Status::InvalidParameters.

If this is PrivateFallbackRemote, initiator_filter_policy is UseAddress, the controller’s resolving list did not contain a matching entry, and the random address for the device has not been initialized, the Controller shall return the error code Status::InvalidParameters.

If this is set PrivateFallbackRandom, initiator_filter_policy is WhiteList, and the random address for the device has not been initialized, the Controller shall return the error code Status::InvalidParameters.

§conn_interval: ConnectionInterval

Defines the minimum and maximum allowed connection interval, latency, and supervision timeout.

§expected_connection_length: ExpectedConnectionLength

Informative parameters providing the Controller with the expected minimum and maximum length of the connection events.

Trait Implementations§

Source§

impl Clone for ConnectionParameters

Source§

fn clone(&self) -> ConnectionParameters

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ConnectionParameters

Source§

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

Formats the value using the given formatter. 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.