Struct bluenrg::gap::ExpectedConnectionLength[][src]

pub struct ExpectedConnectionLength { /* fields omitted */ }

Define an expected connection length range

There is no minimum. The maximum is bounded by what is representable as a u16 at T = N * 0.625 ms, so max = 65535 * 0.625 ms = 40.959375 seconds.

Methods

impl ExpectedConnectionLength
[src]

Creates a new ExpectedConnectionLength, or returns an error if the duration is invalid.

Errors

  • Inverted if min is greater than max
  • TooLong if max is longer than 40.959375 seconds.

Serializes the expected connection length range into the given byte buffer.

Panics

The buffer must be at least 4 bytes long.

Trait Implementations

impl Debug for ExpectedConnectionLength
[src]

Formats the value using the given formatter. Read more

impl Clone for ExpectedConnectionLength
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations