pub struct GlobalState {
pub memorydb: Arc<dyn MemoryDB>,
pub config: Config,
pub logger: Option<Logger>,
pub locale: Locale,
pub server: ServerHandle,
}
Available on crate feature
state
only.Fields§
§memorydb: Arc<dyn MemoryDB>
Available on crate feature
§memorydb
only.config: Config
Available on crate feature
§config
only.logger: Option<Logger>
Available on crate feature
logger
only.Global logger.
locale: Locale
Available on crate feature
§i18n
only.server: ServerHandle
Handle server state.
Implementations§
Auto Trait Implementations§
impl !Freeze for GlobalState
impl !RefUnwindSafe for GlobalState
impl Send for GlobalState
impl Sync for GlobalState
impl Unpin for GlobalState
impl !UnwindSafe for GlobalState
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