pub struct SnapshotMetadata { /* private fields */ }Expand description
Metadata about the state of a document snapshot.
Implementations§
Source§impl SnapshotMetadata
impl SnapshotMetadata
Sourcepub fn new(from_cache: bool, has_pending_writes: bool) -> Self
pub fn new(from_cache: bool, has_pending_writes: bool) -> Self
Creates metadata with the provided cache/pending-write flags.
Sourcepub fn from_cache(&self) -> bool
pub fn from_cache(&self) -> bool
Indicates whether the snapshot was served from a local cache.
Sourcepub fn has_pending_writes(&self) -> bool
pub fn has_pending_writes(&self) -> bool
Indicates whether the snapshot contains uncommitted local mutations.
Trait Implementations§
Source§impl Clone for SnapshotMetadata
impl Clone for SnapshotMetadata
Source§fn clone(&self) -> SnapshotMetadata
fn clone(&self) -> SnapshotMetadata
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 Debug for SnapshotMetadata
impl Debug for SnapshotMetadata
Source§impl Default for SnapshotMetadata
impl Default for SnapshotMetadata
Source§fn default() -> SnapshotMetadata
fn default() -> SnapshotMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for SnapshotMetadata
impl PartialEq for SnapshotMetadata
impl Copy for SnapshotMetadata
impl Eq for SnapshotMetadata
impl StructuralPartialEq for SnapshotMetadata
Auto Trait Implementations§
impl Freeze for SnapshotMetadata
impl RefUnwindSafe for SnapshotMetadata
impl Send for SnapshotMetadata
impl Sync for SnapshotMetadata
impl Unpin for SnapshotMetadata
impl UnwindSafe for SnapshotMetadata
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.