pub struct ServerParams<Incoming, Store, Executor, Logger>{
pub incoming_clients: Incoming,
pub storage: Store,
pub executor: Executor,
pub logger: Logger,
}Expand description
Parameters the server needs to run
Since there are several parameters the server needs, it’s better to pass them as struct containing them.
Fields§
§incoming_clients: IncomingClients that are accepted.
storage: StoreThe implementation of configuration storage.
executor: ExecutorFutures executor used for handling the clients.
logger: Loggerslog Logger used for logging.
Auto Trait Implementations§
impl<Incoming, Store, Executor, Logger> Freeze for ServerParams<Incoming, Store, Executor, Logger>
impl<Incoming, Store, Executor, Logger> RefUnwindSafe for ServerParams<Incoming, Store, Executor, Logger>where
Incoming: RefUnwindSafe,
Store: RefUnwindSafe,
Executor: RefUnwindSafe,
Logger: RefUnwindSafe,
impl<Incoming, Store, Executor, Logger> Send for ServerParams<Incoming, Store, Executor, Logger>
impl<Incoming, Store, Executor, Logger> Sync for ServerParams<Incoming, Store, Executor, Logger>
impl<Incoming, Store, Executor, Logger> Unpin for ServerParams<Incoming, Store, Executor, Logger>
impl<Incoming, Store, Executor, Logger> UnwindSafe for ServerParams<Incoming, Store, Executor, Logger>
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