[][src]Struct bluetooth_hci::types::FixedConnectionInterval

pub struct FixedConnectionInterval { /* fields omitted */ }

Define a connection interval with its latency and supervision timeout. This value is returned from the controller.

Implementations

impl FixedConnectionInterval[src]

pub fn from_bytes(bytes: &[u8]) -> Result<Self, ConnectionIntervalError>[src]

Deserializes the connection interval from the given byte buffer.

  • The 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 6 bytes long.

Errors

Any of the errors from the builder except for Incomplete.

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

Returns the connection interval.

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

Returns the connection latency, in number of events.

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

Returns the supervision timeout.

Trait Implementations

impl Clone for FixedConnectionInterval[src]

impl Copy for FixedConnectionInterval[src]

impl Debug for FixedConnectionInterval[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.