pub enum ConnectionEvent<const BUF: usize = 4096> {
SendActivationResponse(RoutingActivationResponse),
ForwardToEcu {
source_address: u16,
target_address: u16,
uds_data: Vec<u8, BUF>,
},
SendDiagnosticAck {
source_address: u16,
target_address: u16,
},
SendDiagnosticNack {
source_address: u16,
target_address: u16,
nack_code: DiagnosticNackCode,
},
SendAliveCheckRequest,
SendAliveCheckResponse,
Close,
}Expand description
Events produced by the connection state machine.
The gateway collects these after each handle or tick call and acts on them - sending
frames, routing messages, closing sockets.
Variants§
SendActivationResponse(RoutingActivationResponse)
Send this RoutingActivationResponse frame back to the tester.
ForwardToEcu
Forward these raw UDS bytes to the ECU at the given target address.
SendDiagnosticAck
Send a DiagnosticMessageAck back to the tester.
SendDiagnosticNack
Send a DiagnosticMessageNack back to the tester.
SendAliveCheckRequest
Send an AliveCheckRequest to the tester.
SendAliveCheckResponse
Send an AliveCheckResponse back to the tester.
Close
Close this TCP connection - activation denied or alive check failed.
Trait Implementations§
Source§impl<const BUF: usize> Clone for ConnectionEvent<BUF>
impl<const BUF: usize> Clone for ConnectionEvent<BUF>
Source§fn clone(&self) -> ConnectionEvent<BUF>
fn clone(&self) -> ConnectionEvent<BUF>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const BUF: usize> Debug for ConnectionEvent<BUF>
impl<const BUF: usize> Debug for ConnectionEvent<BUF>
Source§impl<const BUF: usize> PartialEq for ConnectionEvent<BUF>
impl<const BUF: usize> PartialEq for ConnectionEvent<BUF>
impl<const BUF: usize> Eq for ConnectionEvent<BUF>
impl<const BUF: usize> StructuralPartialEq for ConnectionEvent<BUF>
Auto Trait Implementations§
impl<const BUF: usize> Freeze for ConnectionEvent<BUF>
impl<const BUF: usize> RefUnwindSafe for ConnectionEvent<BUF>
impl<const BUF: usize> Send for ConnectionEvent<BUF>
impl<const BUF: usize> Sync for ConnectionEvent<BUF>
impl<const BUF: usize> Unpin for ConnectionEvent<BUF>
impl<const BUF: usize> UnsafeUnpin for ConnectionEvent<BUF>
impl<const BUF: usize> UnwindSafe for ConnectionEvent<BUF>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more