pub struct AppState {
pub dbc: Mutex<Option<Dbc>>,
pub fast_dbc: Mutex<Option<FastDbc>>,
pub dbc_path: Mutex<Option<String>>,
pub initial_files: Mutex<InitialFiles>,
pub session: Mutex<SessionConfig>,
pub capture_running: Mutex<bool>,
pub capture_stop_tx: Mutex<Option<CaptureStopTx>>,
}Expand description
Global application state shared across Tauri commands.
Fields§
§dbc: Mutex<Option<Dbc>>Loaded DBC database for signal decoding.
fast_dbc: Mutex<Option<FastDbc>>High-performance DBC wrapper with O(1) message lookup. Created alongside dbc for fast decoding in hot paths.
dbc_path: Mutex<Option<String>>Path to the currently loaded DBC file.
initial_files: Mutex<InitialFiles>Initial files from command line.
session: Mutex<SessionConfig>Session configuration for persistence.
capture_running: Mutex<bool>Whether a SocketCAN capture is currently running.
capture_stop_tx: Mutex<Option<CaptureStopTx>>Channel to signal capture to stop and receive result.
Implementations§
Source§impl AppState
impl AppState
pub fn with_initial_files(initial_files: InitialFiles) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AppState
impl !RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl !UnwindSafe for AppState
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more