pub struct KwpRoutineManager<'a> { /* private fields */ }
Expand description

KWP2000 Routine execution wrapper

Implementations

Creates a new routine manager. Upon creation, the KWP2000 diagnostic server will automatically attempt to enter extended diagnostic session mode, which is required for routine execution and management.

Parameters
  • rid - The routine ID
  • server - Reference to running KWP2000 diagnostic server
Returns

If an error of DiagError::ParameterInvalid is returned, then it means that the value of rid is invalid and violates the KWP2000 specification. Other DiagError’s will come from the attempt to set the ECU into extended diagnostic session mode.

Attempts to start the routine

Attempts to stop the routine. Note that some routines automatically exit themselves and do NOT need to be manually stopped

Requests the results of the routine. If the routine was manually stopped prior to running this, it is best practice to check the RoutineExitStatus to see if the routine exited with RoutineExitStatus::NormalExitWithResults first.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.