Enum sp_core::LogLevelFilter
source · [−]pub enum LogLevelFilter {
Off,
Error,
Warn,
Info,
Debug,
Trace,
}
Expand description
Log level filter that expresses which log levels should be filtered.
This enum matches the log::LevelFilter
enum.
Variants
Off
Off
log level filter.
Error
Error
log level filter.
Warn
Warn
log level filter.
Info
Info
log level filter.
Debug
Debug
log level filter.
Trace
Trace
log level filter.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
type PassBy = Enum<LogLevelFilter>
type PassBy = Enum<LogLevelFilter>
The strategy that should be used to pass the type.
Auto Trait Implementations
impl RefUnwindSafe for LogLevelFilter
impl Send for LogLevelFilter
impl Sync for LogLevelFilter
impl Unpin for LogLevelFilter
impl UnwindSafe for LogLevelFilter
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
type SelfInstance = T
type SelfInstance = T
As Self
can be an unsized type, it needs to be represented by a sized type at the host.
This SelfInstance
is the sized type. Read more
pub fn from_ffi_value(
context: &mut dyn FunctionContext,
arg: <<T as PassBy>::PassBy as RIType>::FFIType
) -> Result<T, String>
pub fn from_ffi_value(
context: &mut dyn FunctionContext,
arg: <<T as PassBy>::PassBy as RIType>::FFIType
) -> Result<T, String>
Create SelfInstance
from the given
pub fn into_ffi_value(
self,
context: &mut dyn FunctionContext
) -> Result<<<T as PassBy>::PassBy as RIType>::FFIType, String>
pub fn into_ffi_value(
self,
context: &mut dyn FunctionContext
) -> Result<<<T as PassBy>::PassBy as RIType>::FFIType, String>
Convert self
into a ffi value.
The counterpart to unchecked_from
.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more