Enum AiLogLevel
pub enum AiLogLevel {
Trace,
Debug,
Info,
Warn,
Error,
}Expand description
Severity levels. Ordered low-to-high so the derived
PartialOrd matches “Error > Warn > … > Trace”. Per-session
min level filters records BELOW it (i.e. level < min drops;
level >= min keeps).
Variants§
Trace
Finest-grained detail (raw wire payload fragments, mailbox commands).
Debug
Per-message, non-trace detail (tool-call argument dumps, permission-request bookkeeping).
Info
Lifecycle milestones (session started, agent attached, turn completed, …).
Warn
Recoverable problems / unexpected protocol behaviour.
Error
Unrecoverable failures.
Implementations§
§impl AiLogLevel
impl AiLogLevel
pub fn parse(s: &str) -> Option<AiLogLevel>
pub fn parse(s: &str) -> Option<AiLogLevel>
Parse a string like "info" / "debug" (case-insensitive).
Used by config loaders.
pub fn all() -> &'static [AiLogLevel]
pub fn all() -> &'static [AiLogLevel]
Iterate over all levels, low to high.
Trait Implementations§
§impl Clone for AiLogLevel
impl Clone for AiLogLevel
§fn clone(&self) -> AiLogLevel
fn clone(&self) -> AiLogLevel
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 moreimpl Copy for AiLogLevel
§impl Debug for AiLogLevel
impl Debug for AiLogLevel
impl Eq for AiLogLevel
§impl Hash for AiLogLevel
impl Hash for AiLogLevel
§impl Ord for AiLogLevel
impl Ord for AiLogLevel
§fn cmp(&self, other: &AiLogLevel) -> Ordering
fn cmp(&self, other: &AiLogLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for AiLogLevel
impl PartialEq for AiLogLevel
§impl PartialOrd for AiLogLevel
impl PartialOrd for AiLogLevel
impl StructuralPartialEq for AiLogLevel
Auto Trait Implementations§
impl Freeze for AiLogLevel
impl RefUnwindSafe for AiLogLevel
impl Send for AiLogLevel
impl Sync for AiLogLevel
impl Unpin for AiLogLevel
impl UnsafeUnpin for AiLogLevel
impl UnwindSafe for AiLogLevel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.