pub enum Event {
CreateAccount(AccountId),
Account(AccountEvent),
Folder(AccountEvent, WriteEvent),
File(FileEvent),
Read(VaultId, ReadEvent),
Write(VaultId, WriteEvent),
MoveSecret(ReadEvent, WriteEvent, WriteEvent),
DeleteAccount(AccountId),
}Expand description
Events generated when reading or writing.
Variants§
CreateAccount(AccountId)
Create account event.
Account(AccountEvent)
Account changes.
Folder(AccountEvent, WriteEvent)
Combined event that encapsulates an account event with a folder write event.
Typically used to combine the folder creation (which includes the secure access key) with the create vault event which contains the vault buffer.
File(FileEvent)
Available on crate feature
files only.File event.
Read(VaultId, ReadEvent)
Read folder operations.
Write(VaultId, WriteEvent)
Write folder operations.
MoveSecret(ReadEvent, WriteEvent, WriteEvent)
Move secret operation.
DeleteAccount(AccountId)
Delete account event.
Implementations§
Trait Implementations§
Source§impl From<(Uuid, WriteEvent)> for Event
impl From<(Uuid, WriteEvent)> for Event
Source§fn from(value: (VaultId, WriteEvent)) -> Self
fn from(value: (VaultId, WriteEvent)) -> Self
Converts to this type from the input type.
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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