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>),
}
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.
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static