pub struct SingleUserToken(/* private fields */);Expand description
An opaque capability token proving the caller is inside an
Isam::as_single_user closure.
SingleUserToken can only be constructed by as_single_user; a reference
to it is passed into the closure and must be forwarded to any administrative
method that requires exclusive access. This enforces at compile time
that Isam::compact, Isam::migrate_values, Isam::migrate_keys,
and Isam::migrate_index are never called outside of single-user mode.
Auto Trait Implementations§
impl Freeze for SingleUserToken
impl RefUnwindSafe for SingleUserToken
impl Send for SingleUserToken
impl Sync for SingleUserToken
impl Unpin for SingleUserToken
impl UnsafeUnpin for SingleUserToken
impl UnwindSafe for SingleUserToken
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