Struct logins::LoginStore
source · pub struct LoginStore {
pub db: Mutex<LoginDb>,
}
Fields§
§db: Mutex<LoginDb>
Implementations§
source§impl LoginStore
impl LoginStore
pub fn new(path: impl AsRef<Path>) -> ApiResult<Self>
pub fn new_from_db(db: LoginDb) -> Self
pub fn new_in_memory() -> ApiResult<Self>
pub fn list(&self) -> ApiResult<Vec<EncryptedLogin>>
pub fn get(&self, id: &str) -> ApiResult<Option<EncryptedLogin>>
pub fn get_by_base_domain( &self, base_domain: &str ) -> ApiResult<Vec<EncryptedLogin>>
pub fn find_login_to_update( &self, entry: LoginEntry, enc_key: &str ) -> ApiResult<Option<Login>>
pub fn touch(&self, id: &str) -> ApiResult<()>
pub fn delete(&self, id: &str) -> ApiResult<bool>
pub fn wipe_local(&self) -> ApiResult<()>
pub fn reset(self: Arc<Self>) -> ApiResult<()>
pub fn update( &self, id: &str, entry: LoginEntry, enc_key: &str ) -> ApiResult<EncryptedLogin>
pub fn add(&self, entry: LoginEntry, enc_key: &str) -> ApiResult<EncryptedLogin>
pub fn add_or_update( &self, entry: LoginEntry, enc_key: &str ) -> ApiResult<EncryptedLogin>
pub fn register_with_sync_manager(self: Arc<Self>)
pub fn create_logins_sync_engine( self: Arc<Self> ) -> ApiResult<Box<dyn SyncEngine>>
Auto Trait Implementations§
impl !Freeze for LoginStore
impl !RefUnwindSafe for LoginStore
impl Send for LoginStore
impl Sync for LoginStore
impl Unpin for LoginStore
impl !UnwindSafe for LoginStore
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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more