pub enum ActivationLineState {
Idle,
Pending {
source_address: u16,
activation_type: ActivationType,
},
Active {
source_address: u16,
activation_type: ActivationType,
},
Deactivated {
reason: ActivationDenialReason,
},
}Expand description
The state of the logical activation line for a single TCP connection.
In vehicle terms this maps to the hardware activation line state. The line must be in Active
before DiagnosticMessage frames are forwarded to ECU nodes.
Variants§
Idle
No routing activation has been attempted on this connection.
Pending
A RoutingActivationRequest was received and is being processed.
Active
Routing activation succeeded - diagnostic messages permitted.
Fields
§
activation_type: ActivationTypeActivation type that was used to activate this connection.
Deactivated
Routing activation was denies or the line was dropped. The connection should be closed.
Fields
§
reason: ActivationDenialReasonImplementations§
Trait Implementations§
Source§impl Clone for ActivationLineState
impl Clone for ActivationLineState
Source§fn clone(&self) -> ActivationLineState
fn clone(&self) -> ActivationLineState
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 Debug for ActivationLineState
impl Debug for ActivationLineState
Source§impl PartialEq for ActivationLineState
impl PartialEq for ActivationLineState
impl Eq for ActivationLineState
impl StructuralPartialEq for ActivationLineState
Auto Trait Implementations§
impl Freeze for ActivationLineState
impl RefUnwindSafe for ActivationLineState
impl Send for ActivationLineState
impl Sync for ActivationLineState
impl Unpin for ActivationLineState
impl UnsafeUnpin for ActivationLineState
impl UnwindSafe for ActivationLineState
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