pub struct AppState {
pub db: Box<dyn DbClient>,
pub metrics: Arc<StatsdClient>,
pub http: Client,
pub fernet: MultiFernet,
pub clients: Arc<ClientRegistry>,
pub broadcaster: Arc<RwLock<BroadcastChangeTracker>>,
pub settings: Settings,
pub router_url: String,
pub endpoint_url: String,
pub reliability: Arc<PushReliability>,
}
Fields§
§db: Box<dyn DbClient>
Handle to the data storage object
metrics: Arc<StatsdClient>
§http: Client
§fernet: MultiFernet
Encryption object for the endpoint URL
clients: Arc<ClientRegistry>
The connected WebSocket clients
broadcaster: Arc<RwLock<BroadcastChangeTracker>>
The Megaphone Broadcast change tracker
settings: Settings
§router_url: String
§endpoint_url: String
§reliability: Arc<PushReliability>
Implementations§
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§
§impl<T> AnySync for T
impl<T> AnySync 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