pub fn with_state<T: Key<Value = T> + Send + Sync>(mut self, value: T) -> Self {
        {
            let inner = Arc::get_mut(&mut self.inner).unwrap();
            let mut states = Arc::get_mut(&mut inner.states).unwrap();
            states.insert::<T>(value);
        }
        self
    }
/// Insert a shared state into the server.
Insert a shared state into the server.
Insert a shared state into the server .
pub fn with_state<T: Key<Value = T> + Send + Sync>(mut self, value: T) -> Self {
        {
            let inner = Arc::get_mut(&mut self.inner).unwrap();
            let mut states = Arc::get_mut(&mut inner.states).unwrap();
            states.insert::<T>(value);
        }
        self
    }
pub fn with_state < T : Key < Value = T > + Send + Sync > ( mut self , value : T ) -> Self { { let inner = Arc :: get_mut ( & mut self . inner ) . unwrap ( ) ; let mut states = Arc :: get_mut ( & mut inner . states ) . unwrap ( ) ; states . insert :: < T > ( value ) ; } self }
Insert a shared state into the server.
Insert a shared state into the server .
mut self
value
T
mut self
value
T