pub trait SessionStore: Send + Sync {
// Required methods
fn save_reading<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
vin: &'life1 str,
pid: Pid,
reading: &'life2 Reading,
) -> Pin<Box<dyn Future<Output = Result<(), Obd2Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn save_dtc_event<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
vin: &'life1 str,
dtcs: &'life2 [Dtc],
) -> Pin<Box<dyn Future<Output = Result<(), Obd2Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Persist diagnostic session data for history and analysis.
Session data includes PID readings and DTC events captured during a diagnostic session. This enables historical trending, baseline learning, and post-session review.
Required Methods§
Sourcefn save_reading<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
vin: &'life1 str,
pid: Pid,
reading: &'life2 Reading,
) -> Pin<Box<dyn Future<Output = Result<(), Obd2Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn save_reading<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
vin: &'life1 str,
pid: Pid,
reading: &'life2 Reading,
) -> Pin<Box<dyn Future<Output = Result<(), Obd2Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Save a PID reading to the session history.
Sourcefn save_dtc_event<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
vin: &'life1 str,
dtcs: &'life2 [Dtc],
) -> Pin<Box<dyn Future<Output = Result<(), Obd2Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn save_dtc_event<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
vin: &'life1 str,
dtcs: &'life2 [Dtc],
) -> Pin<Box<dyn Future<Output = Result<(), Obd2Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Save a DTC scan event to the session history.