pub struct TemporalRecovery {
pub op: &'static str,
pub pandas_error: PandasTemporalError,
pub operands: Option<(i64, i64)>,
pub recovered_as: i64,
}Expand description
A bounded defensive recovery that HARDENED mode performed, recorded so a run can be audited after the fact.
br-frankenpandas-fyr1z-hardened-audit-vllv6. AGENTS.md’s security doctrine requires “deterministic audit logs for recoveries and policy overrides”, and overflow-to-NaT is exactly a bounded defensive recovery. Until now it was SILENT: a caller could not distinguish a NaT produced by an overflow from a NaT that was already in the input, which is the whole substance of the DISC-018 impact statement.
Fields§
§op: &'static strThe operation that overflowed.
pandas_error: PandasTemporalErrorThe pandas exception this would have been under STRICT.
operands: Option<(i64, i64)>The operands whose exact result was unrepresentable, when known.
recovered_as: i64The value actually returned. Always the family’s NaT sentinel today.
Trait Implementations§
Source§impl Clone for TemporalRecovery
impl Clone for TemporalRecovery
impl Copy for TemporalRecovery
Source§impl Debug for TemporalRecovery
impl Debug for TemporalRecovery
impl Eq for TemporalRecovery
Source§impl Hash for TemporalRecovery
impl Hash for TemporalRecovery
Source§impl PartialEq for TemporalRecovery
impl PartialEq for TemporalRecovery
impl StructuralPartialEq for TemporalRecovery
Auto Trait Implementations§
impl Forget for TemporalRecovery
impl Freeze for TemporalRecovery
impl Move for TemporalRecovery
impl RefUnwindSafe for TemporalRecovery
impl Send for TemporalRecovery
impl Sync for TemporalRecovery
impl Unpin for TemporalRecovery
impl UnsafeUnpin for TemporalRecovery
impl UnwindSafe for TemporalRecovery
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