pub struct DbKindPeerMetaStore(pub Arc<DnaHash>);Expand description
Database kind for DbKind::PeerMetaStore
Tuple Fields§
§0: Arc<DnaHash>Trait Implementations§
Source§impl Clone for DbKindPeerMetaStore
impl Clone for DbKindPeerMetaStore
Source§fn clone(&self) -> DbKindPeerMetaStore
fn clone(&self) -> DbKindPeerMetaStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DbKindT for DbKindPeerMetaStore
impl DbKindT for DbKindPeerMetaStore
fn kind(&self) -> DbKind
Source§fn filename_inner(&self) -> PathBuf
fn filename_inner(&self) -> PathBuf
The above provided
filename method attaches the .sqlite3 extension.
Implement this to provide the front part of the database filename.Source§fn if_corrupt_wipe(&self) -> bool
fn if_corrupt_wipe(&self) -> bool
Whether to wipe the database if it is corrupt.
Some database it’s safe to wipe them if they are corrupt because
they can be refilled from the network. Other databases cannot
be refilled and some manual intervention is required.
Source§impl Debug for DbKindPeerMetaStore
impl Debug for DbKindPeerMetaStore
Source§impl Display for DbKindPeerMetaStore
impl Display for DbKindPeerMetaStore
Source§impl Hash for DbKindPeerMetaStore
impl Hash for DbKindPeerMetaStore
Source§impl PartialEq for DbKindPeerMetaStore
impl PartialEq for DbKindPeerMetaStore
impl Eq for DbKindPeerMetaStore
impl StructuralPartialEq for DbKindPeerMetaStore
Auto Trait Implementations§
impl Freeze for DbKindPeerMetaStore
impl RefUnwindSafe for DbKindPeerMetaStore
impl Send for DbKindPeerMetaStore
impl Sync for DbKindPeerMetaStore
impl Unpin for DbKindPeerMetaStore
impl UnsafeUnpin for DbKindPeerMetaStore
impl UnwindSafe for DbKindPeerMetaStore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.