Struct bonsaidb_server::api::HandlerSession
source · [−]pub struct HandlerSession<'a, B: Backend = NoBackend> {
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more