pub struct ForensicEntry {
pub timestamp: u64,
pub code: Arc<str>,
pub operation: Arc<str>,
pub details: Arc<str>,
pub source_ip: Arc<str>,
pub metadata: Arc<[(Arc<str>, Arc<str>)]>,
pub size_bytes: usize,
pub retryable: bool,
}Expand description
A single forensic log entry with bounded size.
Uses Arc
Fields§
§timestamp: u64Unix timestamp of error creation
code: Arc<str>Error code (e.g., “E-CFG-100”) - shared immutable string
operation: Arc<str>Operation that failed - shared immutable string
details: Arc<str>Error details - shared immutable string
source_ip: Arc<str>Source IP or identifier - shared immutable string
metadata: Arc<[(Arc<str>, Arc<str>)]>Additional metadata from the error - exact-size allocation
size_bytes: usizeApproximate size in bytes
retryable: boolWhether this error was marked retryable
Trait Implementations§
Source§impl Clone for ForensicEntry
impl Clone for ForensicEntry
Source§fn clone(&self) -> ForensicEntry
fn clone(&self) -> ForensicEntry
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 moreAuto Trait Implementations§
impl Freeze for ForensicEntry
impl RefUnwindSafe for ForensicEntry
impl Send for ForensicEntry
impl Sync for ForensicEntry
impl Unpin for ForensicEntry
impl UnwindSafe for ForensicEntry
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