[][src]Struct bluetooth_hci::host::ConnectionParameters

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

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

impl Clone for ConnectionParameters[src]

impl Debug for ConnectionParameters[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.