#[repr(u64)]pub enum VerbosityLevel {
Error = 0,
Warn = 1,
Notice = 2,
Info = 3,
Talkative = 4,
Chatty = 5,
Debug = 6,
Vomit = 7,
}
Expand description
The different verbosity levels Nix distinguishes.
Variants§
Trait Implementations§
Source§impl Clone for VerbosityLevel
impl Clone for VerbosityLevel
Source§fn clone(&self) -> VerbosityLevel
fn clone(&self) -> VerbosityLevel
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 VerbosityLevel
impl Debug for VerbosityLevel
Source§impl Default for VerbosityLevel
impl Default for VerbosityLevel
Source§fn default() -> VerbosityLevel
fn default() -> VerbosityLevel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VerbosityLevel
impl<'de> Deserialize<'de> for VerbosityLevel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for VerbosityLevel
impl Display for VerbosityLevel
Source§impl From<VerbosityLevel> for u64
impl From<VerbosityLevel> for u64
Source§fn from(enum_value: VerbosityLevel) -> Self
fn from(enum_value: VerbosityLevel) -> Self
Converts to this type from the input type.
Source§impl NixDeserialize for VerbosityLevel
impl NixDeserialize for VerbosityLevel
Source§fn try_deserialize<R>(
reader: &mut R,
) -> impl Future<Output = Result<Option<Self>, R::Error>> + Send + '_
fn try_deserialize<R>( reader: &mut R, ) -> impl Future<Output = Result<Option<Self>, R::Error>> + Send + '_
Read a value from the reader.
This returns an Option to support gracefull shutdown.
fn deserialize<R>( reader: &mut R, ) -> impl Future<Output = Result<Self, R::Error>> + Send + '_
Source§impl NixSerialize for VerbosityLevel
impl NixSerialize for VerbosityLevel
Source§impl PartialEq for VerbosityLevel
impl PartialEq for VerbosityLevel
Source§impl Serialize for VerbosityLevel
impl Serialize for VerbosityLevel
Source§impl TryFrom<u64> for VerbosityLevel
impl TryFrom<u64> for VerbosityLevel
Source§type Error = TryFromPrimitiveError<VerbosityLevel>
type Error = TryFromPrimitiveError<VerbosityLevel>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for VerbosityLevel
impl TryFromPrimitive for VerbosityLevel
const NAME: &'static str = "VerbosityLevel"
type Primitive = u64
type Error = TryFromPrimitiveError<VerbosityLevel>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Eq for VerbosityLevel
impl StructuralPartialEq for VerbosityLevel
Auto Trait Implementations§
impl Freeze for VerbosityLevel
impl RefUnwindSafe for VerbosityLevel
impl Send for VerbosityLevel
impl Sync for VerbosityLevel
impl Unpin for VerbosityLevel
impl UnwindSafe for VerbosityLevel
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