pub struct HardWallExceeded {
pub elapsed_ms: u32,
pub hard_wall_ms: u32,
}Expand description
Error returned by charge() when the hard wall is exceeded.
This is a structural abort signal: the commit MUST unwind. Callers should log, increment the hard-wall counter (done automatically via the report), and return the commit’s abort outcome.
Fields§
§elapsed_ms: u32Elapsed time at the moment of breach, in milliseconds.
hard_wall_ms: u32The hard wall that was exceeded, in milliseconds.
Trait Implementations§
Source§impl Clone for HardWallExceeded
impl Clone for HardWallExceeded
Source§fn clone(&self) -> HardWallExceeded
fn clone(&self) -> HardWallExceeded
Returns a duplicate of the value. Read more
1.0.0 · 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 HardWallExceeded
impl Debug for HardWallExceeded
Source§impl Display for HardWallExceeded
impl Display for HardWallExceeded
Source§impl Error for HardWallExceeded
impl Error for HardWallExceeded
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for HardWallExceeded
impl PartialEq for HardWallExceeded
impl Copy for HardWallExceeded
impl Eq for HardWallExceeded
impl StructuralPartialEq for HardWallExceeded
Auto Trait Implementations§
impl Freeze for HardWallExceeded
impl RefUnwindSafe for HardWallExceeded
impl Send for HardWallExceeded
impl Sync for HardWallExceeded
impl Unpin for HardWallExceeded
impl UnsafeUnpin for HardWallExceeded
impl UnwindSafe for HardWallExceeded
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