[][src]Struct bluenrg::event::EventFlags

pub struct EventFlags { /* fields omitted */ }

Bitfield for the Events Lost event. Each bit indicates a different type of event that was not handled.

Implementations

impl EventFlags[src]

pub const DISCONNECTION_COMPLETE: EventFlags[src]

pub const ENCRYPTION_CHANGE: EventFlags[src]

HCI Event: Encryption change.

pub const READ_REMOTE_VERSION_COMPLETE: EventFlags[src]

pub const COMMAND_COMPLETE: EventFlags[src]

HCI Event: Command Complete.

pub const COMMAND_STATUS: EventFlags[src]

HCI Event: Command Status.

pub const HARDWARE_ERROR: EventFlags[src]

HCI Event: Hardware Error.

pub const NUMBER_OF_COMPLETED_PACKETS: EventFlags[src]

pub const ENCRYPTION_KEY_REFRESH: EventFlags[src]

pub const HAL_INITIALIZED: EventFlags[src]

BlueNRG-MS Event: HAL Initialized.

pub const GAP_LIMITED_DISCOVERABLE_TIMEOUT: EventFlags[src]

pub const GAP_PAIRING_COMPLETE: EventFlags[src]

BlueNRG Event: GAP Pairing complete.

pub const GAP_PASS_KEY_REQUEST: EventFlags[src]

BlueNRG Event: GAP Pass Key Request.

pub const GAP_AUTHORIZATION_REQUEST: EventFlags[src]

BlueNRG Event: GAP Authorization Request.

pub const GAP_PERIPHERAL_SECURITY_INITIATED: EventFlags[src]

pub const GAP_BOND_LOST: EventFlags[src]

BlueNRG Event: GAP Bond Lost.

pub const GAP_PROCEDURE_COMPLETE: EventFlags[src]

BlueNRG Event: GAP Procedure complete.

pub const GAP_ADDRESS_NOT_RESOLVED: EventFlags[src]

BlueNRG-MS Event: GAP Address Not Resolved.

pub const L2CAP_CONNECTION_UPDATE_RESPONSE: EventFlags[src]

pub const L2CAP_PROCEDURE_TIMEOUT: EventFlags[src]

BlueNRG Event: L2Cap Procedure Timeout.

pub const L2CAP_CONNECTION_UPDATE_REQUEST: EventFlags[src]

pub const GATT_ATTRIBUTE_MODIFIED: EventFlags[src]

BlueNRG Event: GATT Attribute modified.

pub const GATT_PROCEDURE_TIMEOUT: EventFlags[src]

BlueNRG Event: GATT timeout.

pub const ATT_EXCHANGE_MTU_RESPONSE: EventFlags[src]

BlueNRG Event: Exchange MTU Response.

pub const ATT_FIND_INFORMATION_RESPONSE: EventFlags[src]

BlueNRG Event: Find information response.

pub const ATT_FIND_BY_TYPE_VALUE_RESPONSE: EventFlags[src]

pub const ATT_READ_BY_TYPE_RESPONSE: EventFlags[src]

pub const ATT_READ_RESPONSE: EventFlags[src]

BlueNRG Event: Read response.

pub const ATT_READ_BLOB_RESPONSE: EventFlags[src]

BlueNRG Event: Read blob response.

pub const ATT_READ_MULTIPLE_RESPONSE: EventFlags[src]

BlueNRG Event: Read multiple response.

pub const ATT_READ_BY_GROUP_TYPE_RESPONSE: EventFlags[src]

pub const ATT_WRITE_RESPONSE: EventFlags[src]

BlueNRG Event: ATT Write Response

pub const ATT_PREPARE_WRITE_RESPONSE: EventFlags[src]

BlueNRG Event: Prepare Write Response.

pub const ATT_EXECUTE_WRITE_RESPONSE: EventFlags[src]

BlueNRG Event: Execute write response.

pub const GATT_INDICATION: EventFlags[src]

BlueNRG Event: Indication received from server.

pub const GATT_NOTIFICATION: EventFlags[src]

BlueNRG Event: Notification received from server.

pub const GATT_PROCEDURE_COMPLETE: EventFlags[src]

BlueNRG Event: GATT Procedure complete.

pub const GATT_ERROR_RESPONSE: EventFlags[src]

pub const GATT_DISCOVER_OR_READ_CHARACTERISTIC_BY_UUID_RESPONSE: EventFlags[src]

BlueNRG Event: Response to either "Discover Characteristic by UUID" or "Read Characteristic by UUID" request

pub const GATT_WRITE_PERMIT_REQUEST: EventFlags[src]

BlueNRG Event: Write request received by server.

pub const GATT_READ_PERMIT_REQUEST: EventFlags[src]

BlueNRG Event: Read request received by server.

pub const GATT_READ_MULTIPLE_PERMIT_REQUEST: EventFlags[src]

BlueNRG Event: Read multiple request received by server.

pub const GATT_TX_POOL_AVAILABLE: EventFlags[src]

BlueNRG-MS Event: TX Pool available event missed.

pub const GATT_SERVER_RX_CONFIRMATION: EventFlags[src]

BlueNRG-MS Event: Server confirmation.

pub const GATT_PREPARE_WRITE_PERMIT_REQUEST: EventFlags[src]

BlueNRG-MS Event: Prepare write permit request.

BlueNRG-MS Event: Link Layer connection complete.

BlueNRG-MS Event: Link Layer advertising report.

BlueNRG-MS Event: Link Layer connection update complete.

BlueNRG-MS Event: Link Layer read remote used features.

BlueNRG-MS Event: Link Layer long-term key request.

pub const fn empty() -> EventFlags[src]

Returns an empty set of flags

pub const fn all() -> EventFlags[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u64[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u64) -> Option<EventFlags>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: u64) -> EventFlags[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: u64) -> EventFlags[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: EventFlags) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: EventFlags) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: EventFlags)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: EventFlags)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: EventFlags)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: EventFlags, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for EventFlags[src]

impl BitAnd<EventFlags> for EventFlags[src]

type Output = EventFlags

The resulting type after applying the & operator.

fn bitand(self, other: EventFlags) -> EventFlags[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<EventFlags> for EventFlags[src]

fn bitand_assign(&mut self, other: EventFlags)[src]

Disables all flags disabled in the set.

impl BitOr<EventFlags> for EventFlags[src]

type Output = EventFlags

The resulting type after applying the | operator.

fn bitor(self, other: EventFlags) -> EventFlags[src]

Returns the union of the two sets of flags.

impl BitOrAssign<EventFlags> for EventFlags[src]

fn bitor_assign(&mut self, other: EventFlags)[src]

Adds the set of flags.

impl BitXor<EventFlags> for EventFlags[src]

type Output = EventFlags

The resulting type after applying the ^ operator.

fn bitxor(self, other: EventFlags) -> EventFlags[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<EventFlags> for EventFlags[src]

fn bitxor_assign(&mut self, other: EventFlags)[src]

Toggles the set of flags.

impl Clone for EventFlags[src]

impl Copy for EventFlags[src]

impl Debug for EventFlags[src]

impl Default for EventFlags[src]

impl Eq for EventFlags[src]

impl Extend<EventFlags> for EventFlags[src]

impl FromIterator<EventFlags> for EventFlags[src]

impl Hash for EventFlags[src]

impl LowerHex for EventFlags[src]

impl Not for EventFlags[src]

type Output = EventFlags

The resulting type after applying the ! operator.

fn not(self) -> EventFlags[src]

Returns the complement of this set of flags.

impl Octal for EventFlags[src]

impl Ord for EventFlags[src]

impl PartialEq<EventFlags> for EventFlags[src]

impl PartialOrd<EventFlags> for EventFlags[src]

impl StructuralEq for EventFlags[src]

impl StructuralPartialEq for EventFlags[src]

impl Sub<EventFlags> for EventFlags[src]

type Output = EventFlags

The resulting type after applying the - operator.

fn sub(self, other: EventFlags) -> EventFlags[src]

Returns the set difference of the two sets of flags.

impl SubAssign<EventFlags> for EventFlags[src]

fn sub_assign(&mut self, other: EventFlags)[src]

Disables all flags enabled in the set.

impl UpperHex for EventFlags[src]

Auto Trait Implementations

impl Send for EventFlags

impl Sync for EventFlags

impl Unpin for EventFlags

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.