#[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§impl PartialOrd for PrintLevel
impl PartialOrd for PrintLevel
impl 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)