pub struct StateSeriesPushError { /* private fields */ }Expand description
An append failure that preserves ownership of the rejected state.
This follows the ownership behavior of standard-library channel send
errors: callers never need to clone expensive scientific data before an
operation that may reject it. The state is boxed internally so
Result<(), StateSeriesPushError> remains small on the successful hot path. The box is
allocated only after validation fails.
Implementations§
Source§impl StateSeriesPushError
impl StateSeriesPushError
Sourcepub fn error(&self) -> &StateSeriesError
pub fn error(&self) -> &StateSeriesError
Returns the collection invariant that rejected the state.
Sourcepub fn state(&self) -> &SystemState
pub fn state(&self) -> &SystemState
Returns the unchanged rejected state by shared reference.
Sourcepub fn into_parts(self) -> (StateSeriesError, SystemState)
pub fn into_parts(self) -> (StateSeriesError, SystemState)
Consumes the error and returns its reason and original state.
Moving the state out of its failure-only outer box does not clone the state or any scientific payload allocation. The tuple follows borrowed inspection order: error first, then state.
Trait Implementations§
Source§impl Debug for StateSeriesPushError
impl Debug for StateSeriesPushError
Source§impl Display for StateSeriesPushError
impl Display for StateSeriesPushError
Source§impl Error for StateSeriesPushError
impl Error for StateSeriesPushError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Exposes the underlying collection error for standard source traversal.
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 StateSeriesPushError
impl !Sync for StateSeriesPushError
impl !UnwindSafe for StateSeriesPushError
impl Freeze for StateSeriesPushError
impl Send for StateSeriesPushError
impl Unpin for StateSeriesPushError
impl UnsafeUnpin for StateSeriesPushError
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> 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