pub struct TenantGuard { /* private fields */ }Expand description
Context guard that sets tenant for the duration of its lifetime.
Uses PostgreSQL’s SET LOCAL to ensure the setting only applies to the current transaction.
Implementations§
Auto Trait Implementations§
impl Freeze for TenantGuard
impl RefUnwindSafe for TenantGuard
impl Send for TenantGuard
impl Sync for TenantGuard
impl Unpin for TenantGuard
impl UnwindSafe for TenantGuard
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