pub enum SDKLogLevel {
    Critical,
    Error,
    Warning,
    Info,
    Debug,
}
Expand description

SDK Log Level Enum

Variants§

§

Critical

A critical error. Maps to “Error” in log crate.

§

Error

A standard error. Maps to “Warn” in log crate.

§

Warning

A warning. Maps to “Info” in log crate.

§

Info

An informative message. Logs to “Debug” in log crate.

§

Debug

A debug message. Maps to “Trace” in log crate.

Implementations§

source§

impl SDKLogLevel

SDKLogLevel implementation

source

pub fn max() -> SDKLogLevel

Returns max logging level available.

source

pub fn min() -> SDKLogLevel

Returns min logging level available.

source

pub fn as_str(&self) -> &'static str

Returns the converted string value of the SDKLogLevel enum.

source

pub fn from_usize(u: usize) -> Option<SDKLogLevel>

Trait Implementations§

source§

impl Clone for SDKLogLevel

source§

fn clone(&self) -> SDKLogLevel

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SDKLogLevel

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SDKLogLevel

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Level> for SDKLogLevel

Same as above, but the other way around.

source§

fn from(sdk_ll: Level) -> Self

Converts to this type from the input type.
source§

impl From<SDKLogLevel> for Level

Implement ‘From’ and ‘Into’ functionality to convert the Log levels we like to the levels that the crate uses. This means we can do something like: ‘let log_level: Level = SDKLogLevel::Info.into();’

source§

fn from(sdk_ll: SDKLogLevel) -> Self

Converts to this type from the input type.
source§

impl FromStr for SDKLogLevel

source§

fn from_str(level: &str) -> Result<SDKLogLevel, Self::Err>

Retrieve the SDK log value from a string value that is the integer value of the SDK log level. For example, “3” would return SDKLogLevel::Warning.

§

type Err = ParseSDKLevelError

The associated error which can be returned from parsing.
source§

impl Copy for SDKLogLevel

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.