[][src]Enum gattii::SerialResponse

pub enum SerialResponse {
    Data(Vec<u8>),
    SendingFileCanceled,
    SendingFileComplete,
    SendingFileStarted,
    SendingFileProgress(u8),
    SendingFileError(String),
    OpenPortSuccess(String),
    OpenPortError(String),
    DisconnectSuccess,
    LogToFileError(String),
    LoggingFileCanceled,
    UnexpectedDisconnection(Vec<String>),
    PortsFound(Vec<String>),
}

Variants

Response to SerialCommand::SendFile. Confirms that the file has been opened successfully and data is going to be sent.

Status response indicating what percentage of transmission a file is at

A port error has occurred that is likely the result of a serial device disconnected. This also returns a list of all still-attached serial devices.

A sorted list of ports found during a port scan. Guaranteed to contain the currently-active port if there is one.

Trait Implementations

impl Debug for SerialResponse
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]