Enum libnotcurses_sys::NcLogLevel
source · [−]#[repr(i32)]
pub enum NcLogLevel {
Silent,
Panic,
Fatal,
Error,
Warning,
Info,
Verbose,
Debug,
Trace,
}Expand description
Log level for NcOptions.
Default
These log levels consciously map cleanly to those of libav; notcurses itself does not use this full granularity.
The log level does not affect the opening and closing banners,
which can be disabled via NcFlag::SuppressBanners
Note that if stderr is connected to the same terminal on which we’re rendering, any kind of logging will disrupt the output.
Variants
Silent
Default. print nothing once fullscreen service begins.
Panic
Print diagnostics immediately related to crashing.
Fatal
We’re hanging around, but we’ve had a horrible fault.
Error
We can’t keep doin’ this, but we can do other things.
Warning
You probably don’t want what’s happening to happen.
Info
“Standard information”.
Verbose
“Detailed information”.
Debug
This is honestly a bit much.
Trace
There’s probably a better way to do what you want.
Trait Implementations
sourceimpl Clone for NcLogLevel
impl Clone for NcLogLevel
sourcefn clone(&self) -> NcLogLevel
fn clone(&self) -> NcLogLevel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for NcLogLevel
impl Debug for NcLogLevel
sourceimpl Default for NcLogLevel
impl Default for NcLogLevel
sourceimpl Display for NcLogLevel
impl Display for NcLogLevel
sourceimpl From<NcLogLevel> for NcLogLevel_i32
impl From<NcLogLevel> for NcLogLevel_i32
sourcefn from(loglevel: NcLogLevel) -> Self
fn from(loglevel: NcLogLevel) -> Self
Converts to this type from the input type.
sourceimpl From<i32> for NcLogLevel
impl From<i32> for NcLogLevel
sourcefn from(log_level: NcLogLevel_i32) -> Self
fn from(log_level: NcLogLevel_i32) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<NcLogLevel> for NcLogLevel
impl PartialEq<NcLogLevel> for NcLogLevel
impl Copy for NcLogLevel
impl Eq for NcLogLevel
impl StructuralEq for NcLogLevel
impl StructuralPartialEq for NcLogLevel
Auto Trait Implementations
impl RefUnwindSafe for NcLogLevel
impl Send for NcLogLevel
impl Sync for NcLogLevel
impl Unpin for NcLogLevel
impl UnwindSafe for NcLogLevel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more