pub struct ServerProps<M: MutableStore, T: TranslationsManager> {
pub opts: ServerOptions,
pub immutable_store: ImmutableStore,
pub mutable_store: M,
pub translations_manager: T,
pub global_state_creator: GlobalStateCreator,
}
Expand description
The full set of properties that all server integrations take.
Fields
opts: ServerOptions
The options for setting up the server.
immutable_store: ImmutableStore
An immutable store to use.
mutable_store: M
A mutable store to use.
translations_manager: T
A translations manager to use.
global_state_creator: GlobalStateCreator
The global state creator. This is used to avoid issues with async
and cloning in Actix Web.
Trait Implementations
sourceimpl<M: Debug + MutableStore, T: Debug + TranslationsManager> Debug for ServerProps<M, T>
impl<M: Debug + MutableStore, T: Debug + TranslationsManager> Debug for ServerProps<M, T>
Auto Trait Implementations
impl<M, T> !RefUnwindSafe for ServerProps<M, T>
impl<M, T> !Send for ServerProps<M, T>
impl<M, T> !Sync for ServerProps<M, T>
impl<M, T> Unpin for ServerProps<M, T> where
M: Unpin,
T: Unpin,
impl<M, T> !UnwindSafe for ServerProps<M, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more