[][src]Struct logins::engine::PasswordEngine

pub struct PasswordEngine {
    pub db: LoginDb,
    pub mem_cached_state: Cell<MemoryCachedState>,
}

Fields

db: LoginDbmem_cached_state: Cell<MemoryCachedState>

Implementations

impl PasswordEngine[src]

pub fn new(path: impl AsRef<Path>, encryption_key: Option<&str>) -> Result<Self>[src]

pub fn new_with_salt(
    path: impl AsRef<Path>,
    encryption_key: &str,
    salt: &str
) -> Result<Self>
[src]

pub fn new_in_memory(encryption_key: Option<&str>) -> Result<Self>[src]

pub fn list(&self) -> Result<Vec<Login>>[src]

pub fn get(&self, id: &str) -> Result<Option<Login>>[src]

pub fn get_by_base_domain(&self, base_domain: &str) -> Result<Vec<Login>>[src]

pub fn potential_dupes_ignoring_username(
    &self,
    login: Login
) -> Result<Vec<Login>>
[src]

pub fn touch(&self, id: &str) -> Result<()>[src]

pub fn delete(&self, id: &str) -> Result<bool>[src]

pub fn wipe(&self) -> Result<()>[src]

pub fn wipe_local(&self) -> Result<()>[src]

pub fn reset(&self) -> Result<()>[src]

pub fn update(&self, login: Login) -> Result<()>[src]

pub fn add(&self, login: Login) -> Result<String>[src]

pub fn import_multiple(&self, logins: &[Login]) -> Result<MigrationMetrics>[src]

pub fn disable_mem_security(&self) -> Result<()>[src]

pub fn rekey_database(&self, new_encryption_key: &str) -> Result<()>[src]

pub fn conn(&self) -> &Connection[src]

pub fn new_interrupt_handle(&self) -> SqlInterruptHandle[src]

pub fn sync(
    &self,
    storage_init: &Sync15StorageClientInit,
    root_sync_key: &KeyBundle
) -> Result<SyncTelemetryPing>
[src]

A convenience wrapper around sync_multiple.

pub fn check_valid_with_no_dupes(&self, login: &Login) -> Result<()>[src]

Auto Trait Implementations

impl !RefUnwindSafe for PasswordEngine

impl Send for PasswordEngine

impl !Sync for PasswordEngine

impl Unpin for PasswordEngine

impl !UnwindSafe for PasswordEngine

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,