pub enum EmbedderState {
Absent,
Active,
Suspended {
retry_at: Option<Instant>,
},
}Expand description
Whether a database has an embedder, and whether it is usable right now.
Variants§
Absent
None was configured. Vectors are not part of this database’s answers.
Active
Configured and in use.
Suspended
Configured, and currently not called.
Either EmbedderGate::suspend was called, or a failure under
EmbedErrorPolicy::Degrade suspended it. retry_at is when the next
call will try the provider again; None means it will not until
EmbedderGate::resume says so.
Fields
§
retry_at: Option<Instant>When the next call will try the provider again; None = not until
EmbedderGate::resume.
Trait Implementations§
Source§impl Clone for EmbedderState
impl Clone for EmbedderState
Source§fn clone(&self) -> EmbedderState
fn clone(&self) -> EmbedderState
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 moreimpl Copy for EmbedderState
Source§impl Debug for EmbedderState
impl Debug for EmbedderState
impl Eq for EmbedderState
Source§impl PartialEq for EmbedderState
impl PartialEq for EmbedderState
impl StructuralPartialEq for EmbedderState
Auto Trait Implementations§
impl Freeze for EmbedderState
impl RefUnwindSafe for EmbedderState
impl Send for EmbedderState
impl Sync for EmbedderState
impl Unpin for EmbedderState
impl UnsafeUnpin for EmbedderState
impl UnwindSafe for EmbedderState
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.