[−][src]Enum dqcsim::common::log::Loglevel
Loglevel for log records.
Variants
This loglevel is to be used for reporting a fatal error, resulting from the owner of the logger getting into an illegal state from which it cannot recover. Such problems are also reported to the API caller via Result::Err if applicable.
This loglevel is to be used for reporting or propagating a non-fatal error caused by the API caller doing something wrong. Such problems are also reported to the API caller via Result::Err if applicable.
This loglevel is to be used for reporting that a called API/function is telling us we did something wrong (that we weren't expecting), but we can recover. For instance, for a failed connection attempt to something that really should not be failing, we can still retry (and eventually report critical or error if a retry counter overflows). Since we're still trying to rectify things at this point, such problems are NOT reported to the API/function caller via Result::Err.
This loglevel is to be used for reporting information specifically requested by the user/API caller, such as the result of an API function requested through the command line, or an explicitly captured stdout/stderr stream.
This loglevel is to be used for reporting information NOT specifically requested by the user/API caller, such as a plugin starting up or shutting down.
This loglevel is to be used for reporting debugging information useful for debugging the user of the API provided by the logged instance.
This loglevel is to be used for reporting debugging information useful for debugging the internals of the logged instance. Such messages would normally only be generated by debug builds, to prevent them from impacting performance under normal circumstances.
Implementations
impl Loglevel
[src]
pub fn try_from(levelfilter: LoglevelFilter) -> Result<Loglevel, NoLoglevel>
[src]
Attempt to convert a LoglevelFilter to a Loglevel.
Until std::convert::TryFrom is stable. (rust-lang/rust #33417)
Trait Implementations
impl Clone for Loglevel
[src]
impl Copy for Loglevel
[src]
impl Debug for Loglevel
[src]
impl<'de> Deserialize<'de> for Loglevel
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for Loglevel
[src]
impl Eq for Loglevel
[src]
impl From<Loglevel> for LoglevelFilter
[src]
fn from(level: Loglevel) -> LoglevelFilter
[src]
impl From<Loglevel> for dqcs_loglevel_t
[src]
impl FromStr for Loglevel
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Loglevel, Self::Err>
[src]
impl Into<u32> for Loglevel
[src]
impl IntoEnumIterator for Loglevel
[src]
type Iterator = LoglevelIter
fn iter() -> LoglevelIterⓘNotable traits for LoglevelIter
impl Iterator for LoglevelIter type Item = Loglevel;
[src]
Notable traits for LoglevelIter
impl Iterator for LoglevelIter type Item = Loglevel;
impl PartialEq<Loglevel> for Loglevel
[src]
impl PartialOrd<Loglevel> for Loglevel
[src]
fn partial_cmp(&self, other: &Loglevel) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for Loglevel
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Loglevel
[src]
impl StructuralPartialEq for Loglevel
[src]
Auto Trait Implementations
impl RefUnwindSafe for Loglevel
impl Send for Loglevel
impl Sync for Loglevel
impl Unpin for Loglevel
impl UnwindSafe for Loglevel
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,