Enum BenchWriteError
#[non_exhaustive]pub enum BenchWriteError {
Closed,
QueueFull,
WriterStopped,
NonFiniteValue {
field: &'static str,
},
Serialize(Error),
Write(Error),
Flush(Error),
Sync(Error),
WriterPanicked,
DestinationExists(PathBuf),
Publish(Error),
InvalidRun {
staging_path: PathBuf,
dropped_records: u64,
},
}Expand description
Failure while recording or finalizing a benchmark run.
Queue overflow and non-finite input increment dropped_records, so the
staging artifact remains diagnostic but cannot be published as gate-valid.
§Examples
let error = ailloli_ui_bench::BenchWriteError::QueueFull;
assert!(error.to_string().contains("run is invalid"));Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Closed
The session no longer accepts records or was already finished.
QueueFull
Nonblocking enqueue found the bounded queue full.
WriterStopped
Writer channel disconnected or the writer previously failed.
NonFiniteValue
A finite-number invariant failed before JSON serialization.
Serialize(Error)
JSON serialization failed.
Write(Error)
Staging-file write failed.
Flush(Error)
Periodic or final buffer flush failed.
Sync(Error)
Final staging-file sync_all failed.
WriterPanicked
Joining the writer observed a panic.
DestinationExists(PathBuf)
Another actor created the destination during the run.
Publish(Error)
Final staging-file rename failed.
InvalidRun
One or more records were dropped, so only the diagnostic staging artifact remains.
Trait Implementations§
§impl Debug for BenchWriteError
impl Debug for BenchWriteError
§impl Display for BenchWriteError
impl Display for BenchWriteError
§impl Error for BenchWriteError
impl Error for BenchWriteError
§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
Auto Trait Implementations§
impl Freeze for BenchWriteError
impl !RefUnwindSafe for BenchWriteError
impl Send for BenchWriteError
impl Sync for BenchWriteError
impl Unpin for BenchWriteError
impl !UnwindSafe for BenchWriteError
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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 more