Skip to main content

LogEvent

Enum LogEvent 

Source
pub enum LogEvent {
    KeyConstructionFailed(BoxError),
    PolicyResolutionFailed(BoxError),
    LocalReadFailed(BoxError),
    LocalWriteFailed(BoxError),
    RemoteReadFailed(BoxError),
    RemoteWriteFailed(BoxError),
    RecoveryPredicateFailed(BoxError),
    RecoveryDecodeFailed(BoxError),
    ShadowFillFailed(BoxError),
    ShadowMismatch(ShadowMismatchDetails),
    InvalidationFailed(BoxError),
}
Expand description

Structured log events. All are fail-open diagnostics except the invalidation failure, which is also returned to the caller.

Variants§

§

KeyConstructionFailed(BoxError)

The key selector failed or panicked, or the identity could not form a key; the source ran uncached. LogLevel::Error.

§

PolicyResolutionFailed(BoxError)

The policy provider failed or panicked, or the merged policy was malformed; the source ran uncached.

§

LocalReadFailed(BoxError)

The LocalStore read failed or panicked; the local layer was skipped for the call. LogLevel::Error.

§

LocalWriteFailed(BoxError)

The LocalStore write failed or panicked; the value was still returned.

§

RemoteReadFailed(BoxError)

The caller-serving remote read failed or exceeded its read budget. Detached shadow reads do not log.

§

RemoteWriteFailed(BoxError)

Preparing or dispatching a caller-serving remote write failed: encoding, compression, the write stamp or the adapter.

§

RecoveryPredicateFailed(BoxError)

The stale-recovery classifier panicked; recovery was denied.

§

RecoveryDecodeFailed(BoxError)

Decoding the retained stale frame failed during recovery; the source error was returned. Default formatting omits value-bearing error text; custom loggers can inspect the original error here.

§

ShadowFillFailed(BoxError)

A shadow job’s clean-miss fill failed while preparing or writing the payload.

§

ShadowMismatch(ShadowMismatchDetails)

A confirmed shadow mismatch, logged only when the resolved policy’s mismatch-logging value is on or its diff is above off.

§

InvalidationFailed(BoxError)

An explicit invalidation failed; the same error is returned to the caller.

Implementations§

Source§

impl LogEvent

Source

pub fn level(&self) -> LogLevel

LogLevel::Error for key construction and process-local read failures, LogLevel::Warn for everything else.

Trait Implementations§

Source§

impl Debug for LogEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for LogEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.