pub struct SessionState { /* private fields */ }
Implementations§
Source§impl SessionState
impl SessionState
Sourcepub fn new(
endpoint: String,
build_server: Arc<dyn Fn(ServerHttpTransport, Option<Value>, String) -> BoxFuture<'static, Result<Server<ServerHttpTransport>>> + Send + Sync>,
sessions: Arc<Mutex<HashMap<String, ServerHttpTransport>>>,
) -> Self
pub fn new( endpoint: String, build_server: Arc<dyn Fn(ServerHttpTransport, Option<Value>, String) -> BoxFuture<'static, Result<Server<ServerHttpTransport>>> + Send + Sync>, sessions: Arc<Mutex<HashMap<String, ServerHttpTransport>>>, ) -> Self
Create a new SessionState instance with configurable parameters
Trait Implementations§
Source§impl Clone for SessionState
impl Clone for SessionState
Source§fn clone(&self) -> SessionState
fn clone(&self) -> SessionState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SessionState
impl !RefUnwindSafe for SessionState
impl Send for SessionState
impl Sync for SessionState
impl Unpin for SessionState
impl !UnwindSafe for SessionState
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