Enum libbpf_rs::PrintLevel
source · #[repr(u32)]pub enum PrintLevel {
Warn = 0,
Info = 1,
Debug = 2,
}
Expand description
An enum representing the different supported print levels.
Variants§
Warn = 0
Print warnings and more severe messages.
Info = 1
Print general information and more severe messages.
Debug = 2
Print debug information and more severe messages.
Trait Implementations§
source§impl Clone for PrintLevel
impl Clone for PrintLevel
source§fn clone(&self) -> PrintLevel
fn clone(&self) -> PrintLevel
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 Debug for PrintLevel
impl Debug for PrintLevel
source§impl From<u32> for PrintLevel
impl From<u32> for PrintLevel
source§fn from(level: libbpf_print_level) -> Self
fn from(level: libbpf_print_level) -> Self
Converts to this type from the input type.
source§impl Ord for PrintLevel
impl Ord for PrintLevel
source§fn cmp(&self, other: &PrintLevel) -> Ordering
fn cmp(&self, other: &PrintLevel) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PrintLevel
impl PartialEq for PrintLevel
source§fn eq(&self, other: &PrintLevel) -> bool
fn eq(&self, other: &PrintLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PrintLevel
impl PartialOrd for PrintLevel
source§fn partial_cmp(&self, other: &PrintLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &PrintLevel) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PrintLevel
impl Eq for PrintLevel
impl StructuralPartialEq for PrintLevel
Auto Trait Implementations§
impl Freeze for PrintLevel
impl RefUnwindSafe for PrintLevel
impl Send for PrintLevel
impl Sync for PrintLevel
impl Unpin for PrintLevel
impl UnwindSafe for PrintLevel
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