pub struct ServerState { /* private fields */ }Available on crate feature
server only.Expand description
Shared server state
Implementations§
Source§impl ServerState
impl ServerState
Sourcepub fn new(config: &ServerConfig) -> Self
pub fn new(config: &ServerConfig) -> Self
Create new server state
Auto Trait Implementations§
impl !Freeze for ServerState
impl !RefUnwindSafe for ServerState
impl Send for ServerState
impl Sync for ServerState
impl Unpin for ServerState
impl !UnwindSafe for ServerState
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