pub struct SessionBootstrapper;Expand description
Sets the session namespace from the tenant slug.
Implementations§
Trait Implementations§
Source§impl Bootstrapper for SessionBootstrapper
impl Bootstrapper for SessionBootstrapper
Source§fn bootstrap<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 TenantContext,
) -> Pin<Box<dyn Future<Output = Result<(), TenancyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn bootstrap<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 TenantContext,
) -> Pin<Box<dyn Future<Output = Result<(), TenancyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Called when a tenant lifecycle starts; only writes tenant scoped state into
context.Auto Trait Implementations§
impl Forget for SessionBootstrapper
impl Freeze for SessionBootstrapper
impl Move for SessionBootstrapper
impl RefUnwindSafe for SessionBootstrapper
impl Send for SessionBootstrapper
impl Sync for SessionBootstrapper
impl Unpin for SessionBootstrapper
impl UnsafeUnpin for SessionBootstrapper
impl UnwindSafe for SessionBootstrapper
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