pub enum Runlevel {
Debug,
Info,
Notice,
Warn,
Err,
}Expand description
Logging severity levels for Tor events.
These levels correspond to Tor’s internal logging runlevels and are used in log events received via the control protocol.
§Severity Order
From most to least severe: Err > Warn >
Notice > Info > Debug
§Example
use stem_rs::Runlevel;
let level = Runlevel::Notice;
println!("Log level: {}", level); // Prints "NOTICE"Variants§
Debug
Low-level runtime information for debugging.
Very verbose output useful for development and troubleshooting.
Info
High-level runtime information.
General operational information about Tor’s activities.
Notice
Information that may be helpful to the user.
Normal operational messages that users might want to see.
Warn
Non-critical issues the user should be aware of.
Problems that don’t prevent operation but may need attention.
Err
Critical issues that impair Tor’s ability to function.
Serious errors that may prevent normal operation.
Trait Implementations§
impl Copy for Runlevel
impl Eq for Runlevel
impl StructuralPartialEq for Runlevel
Auto Trait Implementations§
impl Freeze for Runlevel
impl RefUnwindSafe for Runlevel
impl Send for Runlevel
impl Sync for Runlevel
impl Unpin for Runlevel
impl UnwindSafe for Runlevel
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