#[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 PartialOrd for SayLevel
impl PartialOrd for SayLevel
Source§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 StructuralPartialEq for SayLevel
Auto Trait Implementations§
impl Freeze for SayLevel
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