pub struct CodeIndexWorkerStatus {
pub configured_worker_count: usize,
pub active_worker_slots: usize,
pub queue_depth: usize,
pub queued_task_count: usize,
pub running_task_count: usize,
pub retrying_task_count: usize,
pub dead_letter_task_count: usize,
pub running_lease_count: usize,
pub last_error: Option<String>,
}Expand description
Master-worker diagnostics for repository code indexing.
Fields§
§configured_worker_count: usize§active_worker_slots: usize§queue_depth: usize§queued_task_count: usize§running_task_count: usize§retrying_task_count: usize§dead_letter_task_count: usize§running_lease_count: usize§last_error: Option<String>Implementations§
Source§impl CodeIndexWorkerStatus
impl CodeIndexWorkerStatus
Sourcepub fn from_queue(
configured_worker_count: usize,
queue: CodeIndexTaskQueueStatus,
) -> Self
pub fn from_queue( configured_worker_count: usize, queue: CodeIndexTaskQueueStatus, ) -> Self
Overlays resident master runtime configuration onto durable task queue state.
Trait Implementations§
Source§impl Clone for CodeIndexWorkerStatus
impl Clone for CodeIndexWorkerStatus
Source§fn clone(&self) -> CodeIndexWorkerStatus
fn clone(&self) -> CodeIndexWorkerStatus
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 CodeIndexWorkerStatus
impl Debug for CodeIndexWorkerStatus
Source§impl<'de> Deserialize<'de> for CodeIndexWorkerStatus
impl<'de> Deserialize<'de> for CodeIndexWorkerStatus
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 CodeIndexWorkerStatus
Source§impl PartialEq for CodeIndexWorkerStatus
impl PartialEq for CodeIndexWorkerStatus
Source§fn eq(&self, other: &CodeIndexWorkerStatus) -> bool
fn eq(&self, other: &CodeIndexWorkerStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CodeIndexWorkerStatus
impl Serialize for CodeIndexWorkerStatus
impl StructuralPartialEq for CodeIndexWorkerStatus
Auto Trait Implementations§
impl Freeze for CodeIndexWorkerStatus
impl RefUnwindSafe for CodeIndexWorkerStatus
impl Send for CodeIndexWorkerStatus
impl Sync for CodeIndexWorkerStatus
impl Unpin for CodeIndexWorkerStatus
impl UnsafeUnpin for CodeIndexWorkerStatus
impl UnwindSafe for CodeIndexWorkerStatus
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.