[][src]Struct rubble::link::advertising::ConnectRequestData

pub struct ConnectRequestData { /* fields omitted */ }

Connection parameters sent along with a ConnectRequest PDU (also known as LLData).

Methods

impl ConnectRequestData[src]

pub fn access_address(&self) -> u32[src]

Returns the Access Address to use for data channel communication.

The address is randomly generated by the initiator (the device sending the connection request) according to the requirements in the Bluetooth specification.

pub fn crc_init(&self) -> u32[src]

Returns the initialization value for the CRC calculation.

The CRC polynomial is always the same.

pub fn channel_map(&self) -> &ChannelMap[src]

Returns the channel map specified by the initiator.

pub fn hop(&self) -> u8[src]

Returns the channel hop distance.

This must be in range 5..=16.

pub fn end_of_tx_window(&self) -> Duration[src]

Returns the end of the transmit window from reception of the CONNECT_REQ containing self.

pub fn interval(&self) -> Duration[src]

Returns the connection event interval in µs.

pub fn slave_latency(&self) -> u16[src]

Returns the slave latency (as the number of connection events).

pub fn supervision_timeout(&self) -> Duration[src]

Returns the connection supervision timeout (connSupervisionTimeout) to use for this connection.

If no data packet is received for this duration, the connection should be considered lost.

Trait Implementations

impl<'_> FromBytes<'_> for ConnectRequestData[src]

impl Copy for ConnectRequestData[src]

impl Debug for ConnectRequestData[src]

impl Clone for ConnectRequestData[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

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

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

The type returned in the event of a conversion error.

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

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

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

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