pub enum DegradationReason {
ParseStorm {
pending_parses: usize,
},
IoError {
message: String,
},
ScanTimeout {
elapsed_ms: u64,
},
ResourceLimit {
kind: ResourceKind,
},
}Expand description
Reason for index degradation.
Variants§
ParseStorm
Parse storm (too many simultaneous changes).
IoError
IO error during indexing.
ScanTimeout
Timeout during workspace scan.
ResourceLimit
Resource limits exceeded.
Fields
§
kind: ResourceKindWhich resource limit was exceeded.
Trait Implementations§
Source§impl Clone for DegradationReason
impl Clone for DegradationReason
Source§fn clone(&self) -> DegradationReason
fn clone(&self) -> DegradationReason
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 moreAuto Trait Implementations§
impl Freeze for DegradationReason
impl RefUnwindSafe for DegradationReason
impl Send for DegradationReason
impl Sync for DegradationReason
impl Unpin for DegradationReason
impl UnsafeUnpin for DegradationReason
impl UnwindSafe for DegradationReason
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