Enum ecu_diagnostics::ServerEvent [−][src]
pub enum ServerEvent<'a, SessionState> {
CriticalError {
desc: String,
},
ServerStart,
ServerExit,
DiagModeChange {
old: SessionState,
new: SessionState,
},
Request(&'a [u8]),
Response(&'a DiagServerResult<Vec<u8>>),
TesterPresentError(DiagError),
InterfaceCloseOnExitError(ChannelError),
}
Expand description
Diagnostic server event
Variants
The diagnostic server encountered an unrecoverable critical error
Fields of CriticalError
desc: String
Text description of the error
The diagnostic server has started
The diagnostic server has terminated
The diagnostic server has changed session state
Received a request to send a payload to the ECU
Response(&'a DiagServerResult<Vec<u8>>)
Response from the ECU
Tuple Fields of Response
0: &'a DiagServerResult<Vec<u8>>
TesterPresentError(DiagError)
An error occurred whilst transmitting tester present message To the ECU. This might mean that the ECU has exited its session state, and a non-default session state should be re-initialized
Tuple Fields of TesterPresentError
0: DiagError
InterfaceCloseOnExitError(ChannelError)
Error occurred whilst trying to terminate the server’s channel interface when the diagnostic server exited.
Tuple Fields of InterfaceCloseOnExitError
0: ChannelError