Struct lexa_framework::server::Server
source · pub struct Server<UserState> {
pub application_settings: Settings,
/* private fields */
}Fields§
§application_settings: SettingsImplementations§
source§impl<US> Server<US>where
US: 'static + StateInterface,
impl<US> Server<US>where US: 'static + StateInterface,
sourcepub fn make_application<A>(self) -> Selfwhere
A: Application<State = US>,
pub fn make_application<A>(self) -> Selfwhere A: Application<State = US>,
Crée une application pour le serveur.
sourcepub fn with_user_state(self, data: US::UserData) -> Self
pub fn with_user_state(self, data: US::UserData) -> Self
Définit les paramètres utilisateur de l’état.
Auto Trait Implementations§
impl<UserState> !RefUnwindSafe for Server<UserState>
impl<UserState> Send for Server<UserState>where UserState: Send,
impl<UserState> !Sync for Server<UserState>
impl<UserState> Unpin for Server<UserState>where UserState: Unpin,
impl<UserState> !UnwindSafe for Server<UserState>
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