#[repr(u32)]pub enum LogLevel {
Trace = 0,
Debug = 1,
Info = 2,
Warn = 3,
Error = 4,
}Expand description
Severity of a record a stage asked the host to log.
The same type a guest writes into its outbox, since a level that crossed
the WebAssembly boundary and a level a native plugin passed to
Ctx::log are the same thing.
Severity of a queued log record, in the order every logging library writes
them.
Variants§
Trace = 0
Debug = 1
Info = 2
What a record with an unrecognised level is read as: a guest that bothered to queue one should still be heard.
Warn = 3
Error = 4
Implementations§
Trait Implementations§
impl Copy for Level
impl Eq for Level
Source§impl Ord for Level
impl Ord for Level
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
Source§impl PartialOrd for Level
impl PartialOrd for Level
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnsafeUnpin for Level
impl UnwindSafe for Level
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