pub(crate) struct AppState {
pub(crate) mode: ExporterMode,
pub(crate) parquet_root: Arc<PathBuf>,
}Expand description
State shared by the Axum WebSocket handler and the NATS worker tasks.
Fields§
§mode: ExporterModeMode the process was started in.
parquet_root: Arc<PathBuf>Root of the Parquet archive (PARQUET_DIR).
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 UnsafeUnpin for AppState
impl UnwindSafe for AppState
Blanket Implementations§
impl<T> Allocation for T
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