[−][src]Enum rubble::link::advertising::PduType
Variants
AdvInd
Connectable undirected advertising event (ADV_IND
).
AdvDirectInd
Connectable directed advertising event (ADV_DIRECT_IND
).
AdvNonconnInd
Non-connectable undirected advertising event (ADV_NONCONN_IND
).
AdvScanInd
Scannable undirected advertising event (ADV_SCAN_IND
).
ScanReq
Scan request (SCAN_REQ
).
Sent by device in Scanning State, received by device in Advertising State.
ScanRsp
Scan response (SCAN_RSP
).
Sent by device in Advertising State, received by devicein Scanning State.
ConnectReq
Connect request (CONNECT_REQ
).
Sent by device in Initiating State, received by device in Advertising State.
Unknown(u8)
Methods
impl PduType
[src]
pub fn is_beacon(&self) -> bool
[src]
Returns whether this PDU type is a beacon advertisement.
pub fn allows_adv_data(&self) -> bool
[src]
Whether AD structures can follow the fixed data in a PDU of this type.
Trait Implementations
impl From<u8> for PduType
[src]
impl From<PduType> for u8
[src]
impl Debug for PduType
[src]
impl PartialEq<PduType> for PduType
[src]
impl Eq for PduType
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
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, 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,