Enum GCLogLevel
#[repr(u32)]pub enum GCLogLevel {
DEBUG = 4,
INFO = 3,
WARNING = 2,
ERROR = 1,
CRITICAL = 0,
}Expand description
Enum representing the level of a log message
Variants§
Implementations§
§impl GCLogLevel
impl GCLogLevel
pub fn from_c(c_value: eGCLogLevel) -> Result<GCLogLevel, GCPluginABIError>
pub fn from_c(c_value: eGCLogLevel) -> Result<GCLogLevel, GCPluginABIError>
Converts a u32 value to a GCLogLevel If the value is not a valid GCLogLevel, an error is returned
pub fn into_c(self) -> eGCLogLevel
Trait Implementations§
§impl Clone for GCLogLevel
impl Clone for GCLogLevel
§fn clone(&self) -> GCLogLevel
fn clone(&self) -> GCLogLevel
Returns a duplicate 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 more§impl Debug for GCLogLevel
impl Debug for GCLogLevel
§impl From<GCLogLevel> for LevelFilter
impl From<GCLogLevel> for LevelFilter
§fn from(level: GCLogLevel) -> Self
fn from(level: GCLogLevel) -> Self
Converts to this type from the input type.
§impl From<LevelFilter> for GCLogLevel
impl From<LevelFilter> for GCLogLevel
§fn from(level: LevelFilter) -> Self
fn from(level: LevelFilter) -> Self
Converts to this type from the input type.
§impl Ord for GCLogLevel
impl Ord for GCLogLevel
§impl PartialEq for GCLogLevel
impl PartialEq for GCLogLevel
§impl PartialOrd for GCLogLevel
impl PartialOrd for GCLogLevel
impl Copy for GCLogLevel
impl Eq for GCLogLevel
impl StructuralPartialEq for GCLogLevel
Auto Trait Implementations§
impl Freeze for GCLogLevel
impl RefUnwindSafe for GCLogLevel
impl Send for GCLogLevel
impl Sync for GCLogLevel
impl Unpin for GCLogLevel
impl UnsafeUnpin for GCLogLevel
impl UnwindSafe for GCLogLevel
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