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§
source§impl Clone for LogLevelFilter
impl Clone for LogLevelFilter
source§fn clone(&self) -> LogLevelFilter
fn clone(&self) -> LogLevelFilter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Decode for LogLevelFilter
impl Decode for LogLevelFilter
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
Attempt to deserialise the value from input.
source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
source§impl Encode for LogLevelFilter
impl Encode for LogLevelFilter
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
source§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl From<LevelFilter> for LogLevelFilter
impl From<LevelFilter> for LogLevelFilter
source§fn from(l: LevelFilter) -> Self
fn from(l: LevelFilter) -> Self
Converts to this type from the input type.
source§impl From<LogLevelFilter> for LevelFilter
impl From<LogLevelFilter> for LevelFilter
source§fn from(l: LogLevelFilter) -> Self
fn from(l: LogLevelFilter) -> Self
Converts to this type from the input type.
source§impl From<LogLevelFilter> for u8
impl From<LogLevelFilter> for u8
source§fn from(var: LogLevelFilter) -> u8
fn from(var: LogLevelFilter) -> u8
Converts to this type from the input type.
source§impl PassBy for LogLevelFilter
impl PassBy for LogLevelFilter
§type PassBy = Enum<LogLevelFilter>
type PassBy = Enum<LogLevelFilter>
The strategy that should be used to pass the type.
source§impl TryFrom<u8> for LogLevelFilter
impl TryFrom<u8> for LogLevelFilter
impl Copy for LogLevelFilter
impl EncodeLike<LogLevelFilter> for LogLevelFilter
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§
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
source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere T: Decode,
source§impl<T> FromFFIValue for Twhere
T: PassBy,
impl<T> FromFFIValue for Twhere T: PassBy,
§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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoFFIValue for Twhere
T: PassBy,
impl<T> IntoFFIValue for Twhere T: PassBy,
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.