pub struct SqliteStore { /* private fields */ }Expand description
SQLite storage backend.
Implementations§
Trait Implementations§
Source§impl Debug for SqliteStore
impl Debug for SqliteStore
Source§impl SessionStore for SqliteStore
impl SessionStore for SqliteStore
Source§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_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.
Source§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,
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.
Source§impl VehicleStore for SqliteStore
impl VehicleStore for SqliteStore
Source§fn save_vehicle<'life0, 'life1, 'async_trait>(
&'life0 self,
profile: &'life1 VehicleProfile,
) -> Pin<Box<dyn Future<Output = Result<(), Obd2Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_vehicle<'life0, 'life1, 'async_trait>(
&'life0 self,
profile: &'life1 VehicleProfile,
) -> Pin<Box<dyn Future<Output = Result<(), Obd2Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Save or update a vehicle profile. Read more
Source§fn get_vehicle<'life0, 'life1, 'async_trait>(
&'life0 self,
vin: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<VehicleProfile>, Obd2Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_vehicle<'life0, 'life1, 'async_trait>(
&'life0 self,
vin: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<VehicleProfile>, Obd2Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieve a vehicle profile by VIN. Read more
Source§fn save_thresholds<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
vin: &'life1 str,
thresholds: &'life2 ThresholdSet,
) -> 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_thresholds<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
vin: &'life1 str,
thresholds: &'life2 ThresholdSet,
) -> Pin<Box<dyn Future<Output = Result<(), Obd2Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Save per-VIN threshold overrides. Read more
Source§fn get_thresholds<'life0, 'life1, 'async_trait>(
&'life0 self,
vin: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ThresholdSet>, Obd2Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_thresholds<'life0, 'life1, 'async_trait>(
&'life0 self,
vin: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ThresholdSet>, Obd2Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieve per-VIN threshold overrides. Read more
Auto Trait Implementations§
impl !Freeze for SqliteStore
impl RefUnwindSafe for SqliteStore
impl Send for SqliteStore
impl Sync for SqliteStore
impl Unpin for SqliteStore
impl UnsafeUnpin for SqliteStore
impl UnwindSafe for SqliteStore
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