Struct vapstore::VapMultiStore[][src]

pub struct VapMultiStore { /* fields omitted */ }

Similar to VapStore but may store many accounts (with different passwords) for the same Address

Implementations

impl VapMultiStore[src]

pub fn open(directory: Box<dyn KeyDirectory>) -> Result<Self, Error>[src]

Open new multi-accounts store with given key directory backend.

pub fn open_with_iterations(
    directory: Box<dyn KeyDirectory>,
    iterations: u32
) -> Result<Self, Error>
[src]

Open new multi-accounts store with given key directory backend and custom number of iterations for new keys.

pub fn set_refresh_time(&self, time: Duration)[src]

Modify account refresh timeout - how often they are re-read from KeyDirectory.

Setting this to low values (or 0) will cause new accounts to be picked up quickly, although it may induce heavy disk reads and is not recommended if you manage many keys (say over 10k).

By default refreshing is disabled, so only accounts created using this instance of VapStore are taken into account.

Trait Implementations

impl SimpleSecretStore for VapMultiStore[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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>,