pub struct IndexedDbDatabase { /* private fields */ }Implementations§
Source§impl IndexedDbDatabase
impl IndexedDbDatabase
pub fn get_identifiers(&self) -> Vec<(String, IdentifierRecord)>
pub fn get_identifier(&self, alias: &str) -> Option<IdentifierRecord>
pub fn new() -> Self
pub fn add_identifier( &self, alias: &str, said: &IdentifierPrefix, seed: &SeedPrefix, ) -> Result<(), IndexedDbError>
pub fn update_identifier_watcher( &self, alias: &str, watcher_oobi: LocationScheme, ) -> Result<(), IndexedDbError>
pub fn update_identifier_alias( &self, old_alias: &str, new_alias: &str, ) -> Result<(), IndexedDbError>
Trait Implementations§
Source§impl Default for IndexedDbDatabase
impl Default for IndexedDbDatabase
Source§impl EscrowCreator for IndexedDbDatabase
impl EscrowCreator for IndexedDbDatabase
type EscrowDatabaseType = IndexedDbEscrowDatabase
fn create_escrow_db(&self, table_name: &'static str) -> Self::EscrowDatabaseType
Source§impl EventDatabase for IndexedDbDatabase
impl EventDatabase for IndexedDbDatabase
type Error = IndexedDbError
type LogDatabaseType = IndexedDbLogDatabase
fn get_log_db(&self) -> Arc<Self::LogDatabaseType> ⓘ
fn add_kel_finalized_event( &self, signed_event: SignedEventMessage, _id: &IdentifierPrefix, ) -> Result<(), Self::Error>
fn add_receipt_t( &self, receipt: SignedTransferableReceipt, _id: &IdentifierPrefix, ) -> Result<(), Self::Error>
fn add_receipt_nt( &self, receipt: SignedNontransferableReceipt, _id: &IdentifierPrefix, ) -> Result<(), Self::Error>
fn get_key_state(&self, id: &IdentifierPrefix) -> Option<IdentifierState>
fn get_kel_finalized_events( &self, params: QueryParameters<'_>, ) -> Option<impl DoubleEndedIterator<Item = TimestampedSignedEventMessage>>
fn get_receipts_t( &self, params: QueryParameters<'_>, ) -> Option<impl DoubleEndedIterator<Item = Transferable>>
fn get_receipts_nt( &self, params: QueryParameters<'_>, ) -> Option<impl DoubleEndedIterator<Item = SignedNontransferableReceipt>>
fn accept_to_kel(&self, event: &KeriEvent<KeyEvent>) -> Result<(), Self::Error>
fn save_reply(&self, _reply: SignedReply) -> Result<(), Self::Error>
fn get_reply( &self, _id: &IdentifierPrefix, _from_who: &IdentifierPrefix, ) -> Option<SignedReply>
impl Send for IndexedDbDatabase
impl Sync for IndexedDbDatabase
Source§impl TelEventDatabase for IndexedDbDatabase
impl TelEventDatabase for IndexedDbDatabase
fn new(_path: impl AsRef<Path>) -> Result<Self, Error>where
Self: Sized,
fn add_new_event( &self, event: VerifiableEvent, id: &IdentifierPrefix, ) -> Result<(), Error>
fn get_events( &self, id: &IdentifierPrefix, ) -> Option<impl DoubleEndedIterator<Item = VerifiableEvent>>
fn get_management_events( &self, id: &IdentifierPrefix, ) -> Option<impl DoubleEndedIterator<Item = VerifiableEvent>>
Auto Trait Implementations§
impl !RefUnwindSafe for IndexedDbDatabase
impl !UnwindSafe for IndexedDbDatabase
impl Freeze for IndexedDbDatabase
impl Unpin for IndexedDbDatabase
impl UnsafeUnpin for IndexedDbDatabase
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.