[−][src]Struct bluenrg::gap::ExpectedConnectionLength
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.
Implementations
impl ExpectedConnectionLength
[src]
pub fn new(
min: Duration,
max: Duration
) -> Result<ExpectedConnectionLength, ExpectedConnectionLengthError>
[src]
min: Duration,
max: Duration
) -> Result<ExpectedConnectionLength, ExpectedConnectionLengthError>
Creates a new ExpectedConnectionLength, or returns an error if the duration is invalid.
Errors
pub fn copy_into_slice(&self, bytes: &mut [u8])
[src]
Serializes the expected connection length range into the given byte buffer.
Panics
The buffer must be at least 4 bytes long.
Trait Implementations
impl Clone for ExpectedConnectionLength
[src]
fn clone(&self) -> ExpectedConnectionLength
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ExpectedConnectionLength
[src]
Auto Trait Implementations
impl Send for ExpectedConnectionLength
impl Sync for ExpectedConnectionLength
impl Unpin for ExpectedConnectionLength
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>,