Struct bluenrg::event::ConnectionInterval[][src]

pub struct ConnectionInterval { /* fields omitted */ }

Define a connection interval range with its latency and supervision timeout. This value is passed to the controller, which determines the actual connection interval.

Methods

impl ConnectionInterval
[src]

Returns the connection interval.

Returns the connection latency, in number of events.

Returns the supervision timeout.

Serializes the connection interval into the given byte buffer.

The interval is serialized as:

  • The minimum interval value, appropriately converted (2 bytes)
  • The maximum interval value, appropriately converted (2 bytes)
  • The connection latency (2 bytes)
  • The supervision timeout, appropriately converted (2 bytes)

Panics

The provided buffer must be at least 8 bytes long.

Deserializes the connection interval from the given byte buffer.

  • The minimum interval value, appropriately converted (2 bytes)
  • The maximum interval value, appropriately converted (2 bytes)
  • The connection latency (2 bytes)
  • The supervision timeout, appropriately converted (2 bytes)

Panics

The provided buffer must be at least 8 bytes long.

Errors

Any of the errors from the builder except for Incomplete.

Trait Implementations

impl Debug for ConnectionInterval
[src]

Formats the value using the given formatter. Read more

impl Clone for ConnectionInterval
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ConnectionInterval
[src]

Auto Trait Implementations