[−][src]Enum dqcsim::bindings::dqcs_loglevel_t
Enumeration of loglevels and logging modes.
Variants
Invalid loglevel. Used to indicate failure of an API that returns a loglevel.
Turns logging off.
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.
This is intended to be used when configuring the stdout/stderr capture mode for a plugin process. Selecting it will prevent the stream from being captured; it will just be the same stream as DQCsim's own stdout/stderr. When used as the loglevel for a message, the message itself is sent to stderr instead of passing into DQCsim's log system. Using this for loglevel filters leads to undefined behavior.
Implementations
impl dqcs_loglevel_t
[src]
pub fn into_capture_mode(self) -> Result<StreamCaptureMode>
[src]
pub fn into_loglevel(self) -> Result<Loglevel>
[src]
pub fn into_loglevel_filter(self) -> Result<LoglevelFilter>
[src]
Trait Implementations
impl Clone for dqcs_loglevel_t
[src]
fn clone(&self) -> dqcs_loglevel_t
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for dqcs_loglevel_t
[src]
impl Debug for dqcs_loglevel_t
[src]
impl From<Loglevel> for dqcs_loglevel_t
[src]
impl From<LoglevelFilter> for dqcs_loglevel_t
[src]
fn from(x: LoglevelFilter) -> Self
[src]
impl From<StreamCaptureMode> for dqcs_loglevel_t
[src]
fn from(x: StreamCaptureMode) -> Self
[src]
impl Into<Result<StreamCaptureMode, Error>> for dqcs_loglevel_t
[src]
fn into(self) -> Result<StreamCaptureMode>
[src]
impl PartialEq<dqcs_loglevel_t> for dqcs_loglevel_t
[src]
fn eq(&self, other: &dqcs_loglevel_t) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for dqcs_loglevel_t
[src]
Auto Trait Implementations
impl RefUnwindSafe for dqcs_loglevel_t
impl Send for dqcs_loglevel_t
impl Sync for dqcs_loglevel_t
impl Unpin for dqcs_loglevel_t
impl UnwindSafe for dqcs_loglevel_t
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> 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, 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>,