[−][src]Struct bluetooth_hci::types::FixedConnectionInterval
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]
fn clone(&self) -> FixedConnectionInterval
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FixedConnectionInterval
[src]
impl Debug for FixedConnectionInterval
[src]
Auto Trait Implementations
impl Send for FixedConnectionInterval
impl Sync for FixedConnectionInterval
impl Unpin for FixedConnectionInterval
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,