pub enum TraceSnapshotError {
Limit {
limit: TraceSnapshotByteLimit,
attempted_len: TraceSnapshotByteCount,
},
Allocation(AllocationError),
}Expand description
Error while materializing an owned trace snapshot from a borrowed trace event.
Snapshot limits are evaluated per event. A failing event is not silently truncated.
Variants§
Limit
Snapshot bytes exceeded the caller-provided snapshot byte limit.
Fields
§
limit: TraceSnapshotByteLimitConfigured maximum trace snapshot byte length.
§
attempted_len: TraceSnapshotByteCountSnapshot length that would have been allocated.
Allocation(AllocationError)
Snapshot byte materialization failed.
Trait Implementations§
Source§impl Clone for TraceSnapshotError
impl Clone for TraceSnapshotError
Source§fn clone(&self) -> TraceSnapshotError
fn clone(&self) -> TraceSnapshotError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TraceSnapshotError
impl Debug for TraceSnapshotError
Source§impl Display for TraceSnapshotError
impl Display for TraceSnapshotError
Source§impl Error for TraceSnapshotError
impl Error for TraceSnapshotError
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 From<AllocationError> for TraceSnapshotError
impl From<AllocationError> for TraceSnapshotError
Source§fn from(value: AllocationError) -> Self
fn from(value: AllocationError) -> Self
Converts to this type from the input type.
Source§impl<E> From<TraceSnapshotError> for TraceSnapshotRunError<E>
impl<E> From<TraceSnapshotError> for TraceSnapshotRunError<E>
Source§fn from(value: TraceSnapshotError) -> Self
fn from(value: TraceSnapshotError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TraceSnapshotError
impl PartialEq for TraceSnapshotError
Source§fn eq(&self, other: &TraceSnapshotError) -> bool
fn eq(&self, other: &TraceSnapshotError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TraceSnapshotError
impl StructuralPartialEq for TraceSnapshotError
Auto Trait Implementations§
impl Freeze for TraceSnapshotError
impl RefUnwindSafe for TraceSnapshotError
impl Send for TraceSnapshotError
impl Sync for TraceSnapshotError
impl Unpin for TraceSnapshotError
impl UnsafeUnpin for TraceSnapshotError
impl UnwindSafe for TraceSnapshotError
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