pub struct SessionService<S, P>where
S: Clone,{ /* private fields */ }Expand description
This endpoint implements the SessionService component.
It can be mounted on the following components:
Implementations§
Source§impl<S, P> SessionService<S, P>where
S: AsRef<dyn AuthenticateRequest> + Clone + Send + Sync + 'static,
P: OperationPrivilegeMapping + 'static,
<P as OperationPrivilegeMapping>::Get: Send,
<P as OperationPrivilegeMapping>::Put: Send,
<P as OperationPrivilegeMapping>::Patch: Send,
impl<S, P> SessionService<S, P>where
S: AsRef<dyn AuthenticateRequest> + Clone + Send + Sync + 'static,
P: OperationPrivilegeMapping + 'static,
<P as OperationPrivilegeMapping>::Get: Send,
<P as OperationPrivilegeMapping>::Put: Send,
<P as OperationPrivilegeMapping>::Patch: Send,
pub fn get<H, T>(self, handler: H) -> SessionService<S, P>where
H: Handler<T, S>,
T: 'static,
pub fn put<H, T>(self, handler: H) -> SessionService<S, P>where
H: Handler<T, S>,
T: 'static,
pub fn patch<H, T>(self, handler: H) -> SessionService<S, P>where
H: Handler<T, S>,
T: 'static,
Sourcepub fn sessions(self, sessions: Router<S>) -> SessionService<S, P>
pub fn sessions(self, sessions: Router<S>) -> SessionService<S, P>
Serves an instance of a SessionCollection.
pub fn into_router(self) -> Router<S>
Trait Implementations§
Source§impl<S> Default for SessionService<S, DefaultPrivileges>where
S: Clone,
impl<S> Default for SessionService<S, DefaultPrivileges>where
S: Clone,
Source§fn default() -> SessionService<S, DefaultPrivileges>
fn default() -> SessionService<S, DefaultPrivileges>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<S, P> Freeze for SessionService<S, P>
impl<S, P> !RefUnwindSafe for SessionService<S, P>
impl<S, P> Send for SessionService<S, P>
impl<S, P> !Sync for SessionService<S, P>
impl<S, P> Unpin for SessionService<S, P>
impl<S, P> !UnwindSafe for SessionService<S, P>
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