[][src]Enum flicbtn::Event

pub enum Event {
    NoOp,
    CorruptEvent,
    AdvertisementPacket {
        scan_id: u32,
        bd_addr: String,
        name: String,
        rssi: u8,
        is_private: bool,
        already_verified: bool,
        already_connected_to_this_device: bool,
        already_connected_to_other_device: bool,
    },
    CreateConnectionChannelResponse {
        conn_id: u32,
        error: CreateConnectionChannelError,
        connection_status: ConnectionStatus,
    },
    ConnectionStatusChanged {
        conn_id: u32,
        connection_status: ConnectionStatus,
        disconnect_reason: DisconnectReason,
    },
    ConnectionChannelRemoved {
        conn_id: u32,
        removed_reason: RemovedReason,
    },
    ButtonUpOrDown {
        conn_id: u32,
        click_type: ClickType,
        was_queued: bool,
        time_diff: i32,
    },
    ButtonClickOrHold {
        conn_id: u32,
        click_type: ClickType,
        was_queued: bool,
        time_diff: i32,
    },
    ButtonSingleOrDoubleClick {
        conn_id: u32,
        click_type: ClickType,
        was_queued: bool,
        time_diff: i32,
    },
    ButtonSingleOrDoubleClickOrHold {
        conn_id: u32,
        click_type: ClickType,
        was_queued: bool,
        time_diff: i32,
    },
    NewVerifiedButton {
        bd_addr: String,
    },
    GetInfoResponse {
        bluetooth_controller_state: BluetoothControllerState,
        my_bd_addr: String,
        my_bd_addr_type: BdAddrType,
        max_pending_connections: u8,
        max_concurrently_connected_buttons: i16,
        current_pending_connections: u8,
        currently_no_space_for_new_connection: bool,
        bd_addr_of_verified_buttons: Vec<String>,
    },
    NoSpaceForNewConnection {
        max_concurrently_connected_buttons: u8,
    },
    GotSpaceForNewConnection {
        max_concurrently_connected_buttons: u8,
    },
    BluetoothControllerStateChange {
        state: BluetoothControllerState,
    },
    PingResponse {
        ping_id: u32,
    },
    GetButtonInfoResponse {
        bd_addr: String,
        uuid: String,
        color: Option<String>,
        serial_number: Option<String>,
    },
    ScanWizardFoundPrivateButton {
        scan_wizard_id: u32,
    },
    ScanWizardFoundPublicButton {
        scan_wizard_id: u32,
        bd_addr: String,
        name: String,
    },
    ScanWizardButtonConnected {
        scan_wizard_id: u32,
    },
    ScanWizardCompleted {
        scan_wizard_id: u32,
        result: ScanWizardResult,
    },
    ButtonDeleted {
        bd_addr: String,
        deleted_by_this_client: bool,
    },
    BatteryStatus {
        listener_id: u32,
        battery_percentage: i8,
        timestamp: u64,
    },
}

Variants

NoOp
CorruptEvent
AdvertisementPacket

Fields of AdvertisementPacket

scan_id: u32bd_addr: Stringname: Stringrssi: u8is_private: boolalready_verified: boolalready_connected_to_this_device: boolalready_connected_to_other_device: bool
CreateConnectionChannelResponse

Fields of CreateConnectionChannelResponse

conn_id: u32error: CreateConnectionChannelErrorconnection_status: ConnectionStatus
ConnectionStatusChanged

Fields of ConnectionStatusChanged

conn_id: u32connection_status: ConnectionStatusdisconnect_reason: DisconnectReason
ConnectionChannelRemoved

Fields of ConnectionChannelRemoved

conn_id: u32removed_reason: RemovedReason
ButtonUpOrDown

Fields of ButtonUpOrDown

conn_id: u32click_type: ClickTypewas_queued: booltime_diff: i32
ButtonClickOrHold

Fields of ButtonClickOrHold

conn_id: u32click_type: ClickTypewas_queued: booltime_diff: i32
ButtonSingleOrDoubleClick

Fields of ButtonSingleOrDoubleClick

conn_id: u32click_type: ClickTypewas_queued: booltime_diff: i32
ButtonSingleOrDoubleClickOrHold

Fields of ButtonSingleOrDoubleClickOrHold

conn_id: u32click_type: ClickTypewas_queued: booltime_diff: i32
NewVerifiedButton

Fields of NewVerifiedButton

bd_addr: String
GetInfoResponse

Fields of GetInfoResponse

bluetooth_controller_state: BluetoothControllerStatemy_bd_addr: Stringmy_bd_addr_type: BdAddrTypemax_pending_connections: u8max_concurrently_connected_buttons: i16current_pending_connections: u8currently_no_space_for_new_connection: boolbd_addr_of_verified_buttons: Vec<String>
NoSpaceForNewConnection

Fields of NoSpaceForNewConnection

max_concurrently_connected_buttons: u8
GotSpaceForNewConnection

Fields of GotSpaceForNewConnection

max_concurrently_connected_buttons: u8
BluetoothControllerStateChange

Fields of BluetoothControllerStateChange

state: BluetoothControllerState
PingResponse

Fields of PingResponse

ping_id: u32
GetButtonInfoResponse

Fields of GetButtonInfoResponse

bd_addr: Stringuuid: Stringcolor: Option<String>serial_number: Option<String>
ScanWizardFoundPrivateButton

Fields of ScanWizardFoundPrivateButton

scan_wizard_id: u32
ScanWizardFoundPublicButton

Fields of ScanWizardFoundPublicButton

scan_wizard_id: u32bd_addr: Stringname: String
ScanWizardButtonConnected

Fields of ScanWizardButtonConnected

scan_wizard_id: u32
ScanWizardCompleted

Fields of ScanWizardCompleted

scan_wizard_id: u32result: ScanWizardResult
ButtonDeleted

Fields of ButtonDeleted

bd_addr: Stringdeleted_by_this_client: bool
BatteryStatus

Fields of BatteryStatus

listener_id: u32battery_percentage: i8timestamp: u64

Trait Implementations

impl Clone for Event[src]

impl Debug for Event[src]

impl Eq for Event[src]

impl PartialEq<Event> for Event[src]

impl StructuralEq for Event[src]

impl StructuralPartialEq for Event[src]

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.