pub enum FallbackEvent {
ShapedSuccessfully,
ShapingRejected,
NoopUsed,
SkippedByPolicy,
}Expand description
Diagnostic event describing which path was taken.
Useful for telemetry, logging, and adaptive quality controllers that may want to track fallback frequency.
Variants§
ShapedSuccessfully
Full shaping was used successfully.
ShapingRejected
The shaper was invoked but the result was rejected (e.g., empty output for non-empty input). Fell back to NoopShaper.
NoopUsed
No shaper was available; used NoopShaper directly.
SkippedByPolicy
Shaping was skipped because the runtime tier doesn’t require it.
Implementations§
Source§impl FallbackEvent
impl FallbackEvent
Sourcepub const fn was_shaped(&self) -> bool
pub const fn was_shaped(&self) -> bool
Whether shaping was actually performed.
Sourcepub const fn is_fallback(&self) -> bool
pub const fn is_fallback(&self) -> bool
Whether a fallback was triggered.
Trait Implementations§
Source§impl Clone for FallbackEvent
impl Clone for FallbackEvent
Source§fn clone(&self) -> FallbackEvent
fn clone(&self) -> FallbackEvent
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 FallbackEvent
impl Debug for FallbackEvent
Source§impl Hash for FallbackEvent
impl Hash for FallbackEvent
Source§impl PartialEq for FallbackEvent
impl PartialEq for FallbackEvent
impl Copy for FallbackEvent
impl Eq for FallbackEvent
impl StructuralPartialEq for FallbackEvent
Auto Trait Implementations§
impl Freeze for FallbackEvent
impl RefUnwindSafe for FallbackEvent
impl Send for FallbackEvent
impl Sync for FallbackEvent
impl Unpin for FallbackEvent
impl UnsafeUnpin for FallbackEvent
impl UnwindSafe for FallbackEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.