pub struct UserStore { /* private fields */ }Expand description
User store backed by sled.
Implementations§
Source§impl UserStore
impl UserStore
Sourcepub fn with_db(db: Db) -> Result<Self, AuthError>
pub fn with_db(db: Db) -> Result<Self, AuthError>
Create a new user store with an existing sled database.
§Errors
Returns error if tree cannot be opened.
Auto Trait Implementations§
impl Freeze for UserStore
impl !RefUnwindSafe for UserStore
impl Send for UserStore
impl Sync for UserStore
impl Unpin for UserStore
impl !UnwindSafe for UserStore
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