Struct bonsaidb::server::api::HandlerSession [−][src]
pub struct HandlerSession<'a, B = NoBackend> where
B: Backend, {
pub server: &'a CustomServer<B>,
pub as_client: CustomServer<B>,
pub client: &'a ConnectedClient<B>,
}
Expand description
A session for a Handler
, providing ways to access the server and
connected client.
Fields
server: &'a CustomServer<B>
The Handler
’s server reference. This server instance is not limited
to the permissions of the connected user.
as_client: CustomServer<B>
The connected client’s server reference. This server instance will reject any database operations that the connected client is not explicitly authorized to perform based on its authentication state.
client: &'a ConnectedClient<B>
The connected client making the API request.
Auto Trait Implementations
impl<'a, B = NoBackend> !RefUnwindSafe for HandlerSession<'a, B>
impl<'a, B> Send for HandlerSession<'a, B>
impl<'a, B> Sync for HandlerSession<'a, B>
impl<'a, B> Unpin for HandlerSession<'a, B>
impl<'a, B = NoBackend> !UnwindSafe for HandlerSession<'a, B>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more