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

pub struct ConnectRequestData {
    access_address: Hex<u32>,
    crc_init: Hex<u32>,
    win_size: Duration,
    win_offset: Duration,
    interval: Duration,
    latency: u16,
    timeout: Duration,
    chm: ChannelMap,
    hop: u8,
    sca: SleepClockAccuracy,
}
Expand description

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

Fields

access_address: Hex<u32>crc_init: Hex<u32>win_size: Duration

Transmit window size in µs.

win_offset: Duration

Transmit window offset in µs.

interval: Duration

Connection interval in µs.

latency: u16

Slave latency (number of connection events).

timeout: Duration

Connection timeout.

chm: ChannelMaphop: u8sca: SleepClockAccuracy

Implementations

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.

Returns the initialization value for the CRC calculation.

The CRC polynomial is always the same.

Returns the channel map specified by the initiator.

Returns the channel hop distance.

This must be in range 5..=16.

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

Returns the connection event interval in µs.

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Decode a Self from a byte slice, advancing bytes to point past the data that was read. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.