#[repr(u32)]pub enum SayLevel {
Fatal = 0,
System = 1,
Error = 2,
Crit = 3,
Warn = 4,
Info = 5,
Verbose = 6,
Debug = 7,
}
Expand description
Tarantool-native logging levels (use it with say())
Variants§
Implementations§
source§impl SayLevel
impl SayLevel
sourcepub const VARIANTS: &'static [Self] = _
pub const VARIANTS: &'static [Self] = _
A slice of all possible enum variants.
These are ordered in the order of definition in the source code.
sourcepub const DISCRIMINANTS_ARE_SUBSEQUENT: bool = true
pub const DISCRIMINANTS_ARE_SUBSEQUENT: bool = true
If this is true
then all of the enum variants have subsequent
discriminants and converting from integer to enum type is going
to use a more efficient implementation.
sourcepub const fn variant_name(&self) -> &'static str
pub const fn variant_name(&self) -> &'static str
Returns the name of the variant as it is spelled in the source code.
Trait Implementations§
source§impl<L> LuaRead<L> for SayLevelwhere
L: AsLua,
impl<L> LuaRead<L> for SayLevelwhere
L: AsLua,
source§fn lua_read_at_position(lua: L, index: NonZeroI32) -> ReadResult<Self, L>
fn lua_read_at_position(lua: L, index: NonZeroI32) -> ReadResult<Self, L>
Reads the data from Lua at a given position.
fn n_values_expected() -> i32
fn lua_read_at_maybe_zero_position(
lua: L,
index: i32
) -> Result<Self, (L, WrongType)>where
L: AsLua,
source§impl Ord for SayLevel
impl Ord for SayLevel
source§impl PartialEq for SayLevel
impl PartialEq for SayLevel
source§impl PartialOrd for SayLevel
impl PartialOrd for SayLevel
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 moresource§impl<L> Push<L> for SayLevelwhere
L: AsLua,
impl<L> Push<L> for SayLevelwhere
L: AsLua,
source§impl<L> PushInto<L> for SayLevelwhere
L: AsLua,
impl<L> PushInto<L> for SayLevelwhere
L: AsLua,
impl Copy for SayLevel
impl Eq for SayLevel
impl<L> PushOne<L> for SayLevelwhere
L: AsLua,
impl<L> PushOneInto<L> for SayLevelwhere
L: AsLua,
impl StructuralEq for SayLevel
impl StructuralPartialEq for SayLevel
Auto Trait Implementations§
impl RefUnwindSafe for SayLevel
impl Send for SayLevel
impl Sync for SayLevel
impl Unpin for SayLevel
impl UnwindSafe for SayLevel
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