Struct autoconnect_settings::AppState
source · 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,
}
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
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