Struct minerva_session::service::SessionService
source · [−]Expand description
Represents a gRPC service for session.
Fields
pools: HashMap<String, (DBPool, Client, Client)>
Holds database (relational and non-relational) connection pools for all tenants.
Trait Implementations
sourceimpl Clone for SessionService
impl Clone for SessionService
sourcefn clone(&self) -> SessionService
fn clone(&self) -> SessionService
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Session for SessionService
impl Session for SessionService
sourcefn generate<'life0, 'async_trait>(
&'life0 self,
req: Request<SessionCreationData>
) -> Pin<Box<dyn Future<Output = Result<Response<SessionToken>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn generate<'life0, 'async_trait>(
&'life0 self,
req: Request<SessionCreationData>
) -> Pin<Box<dyn Future<Output = Result<Response<SessionToken>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Generates session data for a user.
Auto Trait Implementations
impl !RefUnwindSafe for SessionService
impl Send for SessionService
impl Sync for SessionService
impl Unpin for SessionService
impl !UnwindSafe for SessionService
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.fn mapped<U, F, A>(self, f: F) -> SmallVec<A>where
F: FnMut(T) -> U,
A: Array<Item = U>,
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request