[−][src]Struct rubble::link::advertising::ConnectRequestData
Connection parameters sent along with a ConnectRequest
PDU (also known as
LLData
).
Methods
impl ConnectRequestData
[src]
pub fn access_address(&self) -> u32
[src]
Returns the Access Address to use for data channel communication.
The address is randomly generated by the initiator (the device sending the connection request) according to the requirements in the Bluetooth specification.
pub fn crc_init(&self) -> u32
[src]
Returns the initialization value for the CRC calculation.
The CRC polynomial is always the same.
pub fn channel_map(&self) -> &ChannelMap
[src]
Returns the channel map specified by the initiator.
pub fn hop(&self) -> u8
[src]
Returns the channel hop distance.
This must be in range 5..=16
.
pub fn end_of_tx_window(&self) -> Duration
[src]
Returns the end of the transmit window from reception of the CONNECT_REQ
containing
self
.
pub fn interval(&self) -> Duration
[src]
Returns the connection event interval in µs.
pub fn slave_latency(&self) -> u16
[src]
Returns the slave latency (as the number of connection events).
pub fn supervision_timeout(&self) -> Duration
[src]
Returns the connection supervision timeout (connSupervisionTimeout
) to use for this
connection.
If no data packet is received for this duration, the connection should be considered lost.
Trait Implementations
impl<'_> FromBytes<'_> for ConnectRequestData
[src]
fn from_bytes(bytes: &mut ByteReader) -> Result<Self, Error>
[src]
impl Copy for ConnectRequestData
[src]
impl Debug for ConnectRequestData
[src]
impl Clone for ConnectRequestData
[src]
fn clone(&self) -> ConnectRequestData
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for ConnectRequestData
impl Sync for ConnectRequestData
Blanket Implementations
impl<T, U> TryFrom 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> From for T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,