[][src]Enum flicbtn::Command

pub enum Command {
    GetInfo,
    CreateScanner {
        scan_id: u32,
    },
    RemoveScanner {
        scan_id: u32,
    },
    CreateConnectionChannel {
        conn_id: u32,
        bd_addr: String,
        latency_mode: LatencyMode,
        auto_disconnect_time: i16,
    },
    RemoveConnectionChannel {
        conn_id: u32,
    },
    ForceDisconnect {
        bd_addr: String,
    },
    ChangeModeParameters {
        conn_id: u32,
        latency_mode: LatencyMode,
        auto_disconnect_time: i16,
    },
    Ping {
        ping_id: u32,
    },
    GetButtonInfo {
        bd_addr: String,
    },
    CreateScanWizard {
        scan_wizard_id: u32,
    },
    CancelScanWizard {
        scan_wizard_id: u32,
    },
    DeleteButton {
        bd_addr: String,
    },
    CreateBatteryStatusListener {
        listener_id: u32,
        bd_addr: String,
    },
    RemoveBatteryStatusListener {
        listener_id: u32,
    },
}

Commands

Variants

GetInfo
CreateScanner

Fields of CreateScanner

scan_id: u32
RemoveScanner

Fields of RemoveScanner

scan_id: u32
CreateConnectionChannel

Fields of CreateConnectionChannel

conn_id: u32bd_addr: Stringlatency_mode: LatencyModeauto_disconnect_time: i16
RemoveConnectionChannel

Fields of RemoveConnectionChannel

conn_id: u32
ForceDisconnect

Fields of ForceDisconnect

bd_addr: String
ChangeModeParameters

Fields of ChangeModeParameters

conn_id: u32latency_mode: LatencyModeauto_disconnect_time: i16
Ping

Fields of Ping

ping_id: u32
GetButtonInfo

Fields of GetButtonInfo

bd_addr: String
CreateScanWizard

Fields of CreateScanWizard

scan_wizard_id: u32
CancelScanWizard

Fields of CancelScanWizard

scan_wizard_id: u32
DeleteButton

Fields of DeleteButton

bd_addr: String
CreateBatteryStatusListener

Fields of CreateBatteryStatusListener

listener_id: u32bd_addr: String
RemoveBatteryStatusListener

Fields of RemoveBatteryStatusListener

listener_id: u32

Implementations

impl Command[src]

pub fn opcode(&self) -> u8[src]

Auto Trait Implementations

impl RefUnwindSafe for Command

impl Send for Command

impl Sync for Command

impl Unpin for Command

impl UnwindSafe for Command

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.