Enum ecu_diagnostics::ServerEvent
source · [−]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
CriticalError
Fields
desc: String
Text description of the error
The diagnostic server encountered an unrecoverable critical error
ServerStart
The diagnostic server has started
ServerExit
The diagnostic server has terminated
DiagModeChange
The diagnostic server has changed session state
Request(&'a [u8])
Received a request to send a payload to the ECU
Response(&'a DiagServerResult<Vec<u8>>)
Response from the ECU
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
InterfaceCloseOnExitError(ChannelError)
Error occurred whilst trying to terminate the server’s channel interface when the diagnostic server exited.
Trait Implementations
Auto Trait Implementations
impl<'a, SessionState> !RefUnwindSafe for ServerEvent<'a, SessionState>
impl<'a, SessionState> Send for ServerEvent<'a, SessionState> where
SessionState: Send,
impl<'a, SessionState> Sync for ServerEvent<'a, SessionState> where
SessionState: Sync,
impl<'a, SessionState> Unpin for ServerEvent<'a, SessionState> where
SessionState: Unpin,
impl<'a, SessionState> !UnwindSafe for ServerEvent<'a, SessionState>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more