Enum gattii::SerialResponse
[−]
[src]
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
Data(Vec<u8>)
SendingFileCanceled
SendingFileComplete
SendingFileStarted
Response to SerialCommand::SendFile
. Confirms that the file has been opened successfully
and data is going to be sent.
SendingFileProgress(u8)
Status response indicating what percentage of transmission a file is at
SendingFileError(String)
OpenPortSuccess(String)
OpenPortError(String)
DisconnectSuccess
LogToFileError(String)
LoggingFileCanceled
UnexpectedDisconnection(Vec<String>)
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.
PortsFound(Vec<String>)
A sorted list of ports found during a port scan. Guaranteed to contain the currently-active port if there is one.