Struct rubble::link::llcp::ConnectionParamRequest[][src]

pub struct ConnectionParamRequest {
    interval_min: u16,
    interval_max: u16,
    slave_latency: u16,
    supervision_timeout: u16,
    preferred_periodicity: u8,
    reference_conn_event_count: u16,
    offsets: [u16; 6],
}
Expand description

A connection parameter update request or response (LL_CONNECTION_PARAM_REQ/ LL_CONNECTION_PARAM_RSP).

Fields

interval_min: u16interval_max: u16slave_latency: u16supervision_timeout: u16preferred_periodicity: u8

connInterval is preferred to be a multiple of this value (in 1.25 ms steps).

reference_conn_event_count: u16offsets: [u16; 6]

Implementations

Creates a new connection update request structure filled with default values.

The returned structure will use conservative (maximally permissive) default values that will not usually result in a change in connection parameters, so users of this function likely want to call a setter afterwards.

Sets the minimum and maximum requested connection interval.

Parameters

  • min: Minimum connection interval to request.
  • max: Maximum connection interval to request.

Both min and max must be in range 7.5ms to 4s, or they will be constrained to lie in that range.

Both min and max will be rounded down to units of 1.25 ms.

Panics

This will panic if min > max.

Returns the minimum requested connection interval.

Returns the maximum requested connection interval.

Returns the slave latency in number of connection events.

Returns the supervision timeout.

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

Converts self to bytes and writes them into writer, advancing writer to point past the encoded value. 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.