Enum LogLevel

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

#[repr(i32)]pub enum LogLevel {
Unspecified = 0,
Error = 1,
Warn = 2,
Info = 3,
Debug = 4,
Trace = 5,
}

Process-log levels accepted from an authenticated plugin. The host owns the final sink configuration and filters records with its configured threshold.

Variants

Unspecified = 0

Unspecified = 0

Error = 1

Error = 1

Warn = 2

Warn = 2

Info = 3

Info = 3

Debug = 4

Debug = 4

Trace = 5

Trace = 5

Implementations

impl LogLevel

impl LogLevel

is_valid

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of LogLevel.

from_i32

pub fn from_i32(value: i32) -> Option<LogLevel>

Converts an i32 to a LogLevel, or None if value is not a valid variant.

impl LogLevel

impl LogLevel

as_str_name

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

String value of the enum field names used in the ProtoBuf definition.

The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.

from_str_name

pub fn from_str_name(value: &str) -> Option<Self>

Creates an enum from field names used in the ProtoBuf definition.

Trait Implementations

impl Clone for LogLevel

impl Clone for LogLevel

clone

fn clone(&self) -> LogLevel

clone_from

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

impl Debug for LogLevel

impl Debug for LogLevel

fmt

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

impl Default for LogLevel

impl Default for LogLevel

default

fn default() -> LogLevel

impl From<LogLevel> for i32

impl From<LogLevel> for i32

from

fn from(value: LogLevel) -> i32

impl Hash for LogLevel

impl Hash for LogLevel

hash

fn hash<__H: Hasher>(&self, state: &mut __H)

hash_slice

fn hash_slice<H>(data: &[Self], state: &mut H)where
    H: Hasher,
    Self: Sized,

impl Ord for LogLevel

impl Ord for LogLevel

cmp

fn cmp(&self, other: &LogLevel) -> Ordering

max

fn max(self, other: Self) -> Selfwhere
    Self: Sized,

min

fn min(self, other: Self) -> Selfwhere
    Self: Sized,

clamp

fn clamp(self, min: Self, max: Self) -> Selfwhere
    Self: Sized,

impl PartialEq for LogLevel

impl PartialEq for LogLevel

eq

fn eq(&self, other: &LogLevel) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl PartialOrd for LogLevel

impl PartialOrd for LogLevel

partial_cmp

fn partial_cmp(&self, other: &LogLevel) -> Option<Ordering>

lt

fn lt(&self, other: &Rhs) -> bool

le

fn le(&self, other: &Rhs) -> bool

gt

fn gt(&self, other: &Rhs) -> bool

ge

fn ge(&self, other: &Rhs) -> bool

impl TryFrom<i32> for LogLevel

impl TryFrom<i32> for LogLevel

Error

type Error = UnknownEnumValue

try_from

fn try_from(value: i32) -> Result<LogLevel, UnknownEnumValue>

impl Copy for LogLevel

impl Copy for LogLevel

impl Eq for LogLevel

impl Eq for LogLevel

impl StructuralPartialEq for LogLevel

impl StructuralPartialEq for LogLevel