pub struct IndexStatus {
pub kind: IndexKind,
pub index_version: u64,
pub indexed_graph_version: GraphVersion,
pub state: IndexState,
pub last_error: Option<String>,
}Expand description
Versioned status for a derived index.
Fields§
§kind: IndexKind§index_version: u64§indexed_graph_version: GraphVersion§state: IndexState§last_error: Option<String>Implementations§
Source§impl IndexStatus
impl IndexStatus
Sourcepub const fn empty(kind: IndexKind) -> Self
pub const fn empty(kind: IndexKind) -> Self
Creates the initial stale status for an empty derived index.
Sourcepub fn is_stale_for(&self, graph_version: GraphVersion) -> bool
pub fn is_stale_for(&self, graph_version: GraphVersion) -> bool
Returns whether this index is behind the supplied graph version.
Trait Implementations§
Source§impl Clone for IndexStatus
impl Clone for IndexStatus
Source§fn clone(&self) -> IndexStatus
fn clone(&self) -> IndexStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IndexStatus
impl Debug for IndexStatus
Source§impl<'de> Deserialize<'de> for IndexStatus
impl<'de> Deserialize<'de> for IndexStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IndexStatus
Source§impl PartialEq for IndexStatus
impl PartialEq for IndexStatus
Source§impl Serialize for IndexStatus
impl Serialize for IndexStatus
impl StructuralPartialEq for IndexStatus
Auto Trait Implementations§
impl Freeze for IndexStatus
impl RefUnwindSafe for IndexStatus
impl Send for IndexStatus
impl Sync for IndexStatus
impl Unpin for IndexStatus
impl UnsafeUnpin for IndexStatus
impl UnwindSafe for IndexStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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.