Struct jarida::Store [−][src]
A store of journal entries
Implementations
impl Store
[src]
pub fn open<P: AsRef<Path>>(path: P) -> Result<Store>
[src]
Open the journal stored at the specified path.
pub fn get_salt(&self) -> Result<Vec<u8>>
[src]
Get the database’s unique salt (for use in encryption).
pub fn get_key(&mut self) -> Result<Option<Vec<u8>>>
[src]
Get the database’s encryption key. This key is used to encrypt/decrypt all data in the database. However, it is encrypted using the user’s name and password.
pub fn update_key(&mut self, encrypted_key: &[u8]) -> Result<()>
[src]
Update the database’s encryption key. It must already be encrypted with the user’s name and password. Note that the key itself should never change as then there will be no way to decrypt existing entries in the database. It can be reencrypted with a new username and password, however.
pub fn guard<'a>(
&'a mut self,
guard: &'a mut DataGuard,
username: &'a str
) -> GuardedStore<'a>
[src]
&'a mut self,
guard: &'a mut DataGuard,
username: &'a str
) -> GuardedStore<'a>
Use the specified guard to encrypt/decrypt the database.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnwindSafe for Store
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,