#[non_exhaustive]pub enum ObservationError {
Show 13 variants
EmptyPlan,
EmptyStreamName,
DuplicateStreamName {
stream: String,
},
EmptyFieldName {
stream: String,
},
EmptyFieldSelection {
stream: String,
},
DuplicateField {
stream: String,
field: String,
},
UnknownField {
stream: String,
field: String,
},
InvalidSamplingInterval {
stream: String,
},
EmptyAxisUnit {
axis: &'static str,
},
SchemaMismatch {
iteration: u64,
},
StateAccess {
stream: String,
iteration: u64,
field: String,
source: StateError,
},
EncodeField {
stream: String,
iteration: u64,
field: String,
source: Error,
},
NonIncreasingObservation {
stream: String,
previous: u64,
next: u64,
},
}Expand description
A failure while defining, binding, or applying a scientific observation plan.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyPlan
A multi-stream observation plan contained no streams.
EmptyStreamName
A stream name normalized to an empty value.
DuplicateStreamName
Two streams used the same normalized scientific name.
EmptyFieldName
A selected field name normalized to an empty value.
EmptyFieldSelection
A stream selected no fields.
DuplicateField
A stream selected one normalized field more than once.
UnknownField
A stream selected a field absent from the bound state schema.
InvalidSamplingInterval
An iteration sampling interval was zero.
EmptyAxisUnit
A scientific axis unit normalized to an empty value.
SchemaMismatch
An observation did not share the descriptor’s schema allocation.
StateAccess
A selected payload could not be borrowed from the observed state.
Fields
source: StateErrorOriginal typed state-access failure.
EncodeField
Serde rejected a selected scientific payload.
Fields
NonIncreasingObservation
A state observation moved backward relative to an accepted stream value.
Trait Implementations§
Source§impl Debug for ObservationError
impl Debug for ObservationError
Source§impl Display for ObservationError
impl Display for ObservationError
Source§impl Error for ObservationError
impl Error for ObservationError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ObservationError
impl !UnwindSafe for ObservationError
impl Freeze for ObservationError
impl Send for ObservationError
impl Sync for ObservationError
impl Unpin for ObservationError
impl UnsafeUnpin for ObservationError
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
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more