#[non_exhaustive]pub struct ServiceStatus {Show 24 fields
pub archive: ArchiveStatus,
pub last_sync_error: Option<String>,
pub last_sync_error_at: Option<u64>,
pub last_retention_error: Option<String>,
pub last_retention_error_at: Option<u64>,
pub last_names_error: Option<String>,
pub last_names_error_at: Option<u64>,
pub last_dependency_error: Option<String>,
pub last_dependency_error_at: Option<u64>,
pub last_inventory_error: Option<String>,
pub last_inventory_error_at: Option<u64>,
pub last_discovery_error: Option<String>,
pub last_discovery_error_at: Option<u64>,
pub commit_sources: Vec<CommitSourceStatus>,
pub cache_limit_bytes: u64,
pub last_cache_error: Option<String>,
pub last_cache_error_at: Option<u64>,
pub last_cache_maintenance: Option<CacheReceipt>,
pub overlay: Option<OverlayStatus>,
pub chain_peers: u64,
pub chain_target: Option<u64>,
pub retention_configured: bool,
pub record_sources_configured: u64,
pub capabilities: Vec<String>,
}Expand description
Operator-reported service state. Every last_*_error describes the latest
attempt of that worker; *_at is when it was recorded, in Unix seconds.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.archive: ArchiveStatus§last_sync_error: Option<String>§last_sync_error_at: Option<u64>§last_retention_error: Option<String>§last_retention_error_at: Option<u64>§last_names_error: Option<String>§last_names_error_at: Option<u64>§last_dependency_error: Option<String>§last_dependency_error_at: Option<u64>§last_inventory_error: Option<String>§last_inventory_error_at: Option<u64>§last_discovery_error: Option<String>§last_discovery_error_at: Option<u64>§commit_sources: Vec<CommitSourceStatus>§cache_limit_bytes: u64§last_cache_error: Option<String>§last_cache_error_at: Option<u64>§last_cache_maintenance: Option<CacheReceipt>§overlay: Option<OverlayStatus>§chain_peers: u64Litecoin P2P peers the light client holds now; 0 when offline.
chain_target: Option<u64>Absolute height header sync heads for: the best height chain peers announced, never below the local tip. Announced, not proven; null while unknown (no chain peer yet, or offline).
retention_configured: bool§record_sources_configured: u64§capabilities: Vec<String>Trait Implementations§
Source§impl Clone for ServiceStatus
impl Clone for ServiceStatus
Source§fn clone(&self) -> ServiceStatus
fn clone(&self) -> ServiceStatus
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 ServiceStatus
impl Debug for ServiceStatus
Source§impl Default for ServiceStatus
impl Default for ServiceStatus
Source§fn default() -> ServiceStatus
fn default() -> ServiceStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceStatus
impl<'de> Deserialize<'de> for ServiceStatus
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ServiceStatus
impl Serialize for ServiceStatus
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ServiceStatus
impl RefUnwindSafe for ServiceStatus
impl Send for ServiceStatus
impl Sync for ServiceStatus
impl Unpin for ServiceStatus
impl UnsafeUnpin for ServiceStatus
impl UnwindSafe for ServiceStatus
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more