pub struct ServerContext {
pub node_managers: NodeManagersRef,
pub subscriptions: Arc<SubscriptionCache>,
pub info: Arc<ServerInfo>,
pub authenticator: Arc<dyn AuthManager>,
pub type_tree: Arc<RwLock<RawRwLock, DefaultTypeTree>>,
pub type_tree_getter: Arc<dyn TypeTreeForUser>,
pub status: Arc<ServerStatusWrapper>,
}Expand description
General server context, passed when requests are made to the node managers on behalf of the server itself, and not a user.
Fields§
§node_managers: NodeManagersRefWeak reference to the node manager collection.
subscriptions: Arc<SubscriptionCache>Cache containing the subscriptions managed by the server.
info: Arc<ServerInfo>General server state and configuration.
authenticator: Arc<dyn AuthManager>Global authenticator object.
type_tree: Arc<RwLock<RawRwLock, DefaultTypeTree>>The server default type tree.
type_tree_getter: Arc<dyn TypeTreeForUser>Wrapper to get a type tree for a specific user.
status: Arc<ServerStatusWrapper>Wrapper managing the ServerStatus server variable.
Trait Implementations§
Source§impl Clone for ServerContext
impl Clone for ServerContext
Source§fn clone(&self) -> ServerContext
fn clone(&self) -> ServerContext
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 ServerContext
impl !RefUnwindSafe for ServerContext
impl Send for ServerContext
impl Sync for ServerContext
impl Unpin for ServerContext
impl UnsafeUnpin for ServerContext
impl !UnwindSafe for ServerContext
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