Struct bonsaidb::server::api::HandlerSession
source · 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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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