pub enum TelemetryError {
Core(Error),
InvalidRequest(Error),
TooLarge {
what: &'static str,
bytes: usize,
},
UnsupportedSchema {
found: u32,
},
UnsupportedProtocol {
found: u32,
},
InvalidMetadata(&'static str),
RunMismatch {
expected: RunId,
found: RunId,
},
RunStateNotCurrent,
NodeNotFound {
node_id: NodeId,
},
TerminalNode {
node_id: NodeId,
status: Status,
},
AttemptMismatch {
expected: u32,
found: u32,
},
ClockOverflow,
}Expand description
Validation or state error from a telemetry update.
Variants§
Core(Error)
Core run-state or filesystem operation failed.
InvalidRequest(Error)
Input was not strict, valid JSON for TelemetryUpdate.
TooLarge
Raw, normalized, or stored data exceeded the fixed bound.
UnsupportedSchema
A request used an unsupported schema version.
UnsupportedProtocol
A request used an unsupported protocol version.
InvalidMetadata(&'static str)
Tool metadata did not match the activity state or sanitation rules.
RunMismatch
The request run id does not match the run directory.
RunStateNotCurrent
Canonical projections and the event log are not synchronized, so exact attempt/terminal validation cannot be proven.
NodeNotFound
The named node does not exist.
TerminalNode
The node is terminal and cannot accept telemetry.
AttemptMismatch
The supplied attempt is not the exact current attempt.
ClockOverflow
The server clock could not represent the expiry timestamp.
Trait Implementations§
Source§impl Debug for TelemetryError
impl Debug for TelemetryError
Source§impl Display for TelemetryError
impl Display for TelemetryError
Source§impl Error for TelemetryError
impl Error for TelemetryError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()