Enum gstreamer::DebugLevel [−][src]
#[non_exhaustive] pub enum DebugLevel { None, Error, Warning, Fixme, Info, Debug, Log, Trace, Memdump, Count, // some variants omitted }
The level defines the importance of a debugging message. The more important a message is, the greater the probability that the debugging system outputs it.
Variants (Non-exhaustive)
No debugging level specified or desired. Used to deactivate debugging output.
Error messages are to be used only when an error occurred that stops the application from keeping working correctly. An examples is gst_element_error, which outputs a message with this priority. It does not mean that the application is terminating as with g_error.
Warning messages are to inform about abnormal behaviour that could lead to problems or weird behaviour later on. An example of this would be clocking issues (“your computer is pretty slow”) or broken input data (“Can’t synchronize to stream.”)
Fixme messages are messages that indicate that something in the executed code path is not fully implemented or handled yet. Note that this does not replace proper error handling in any way, the purpose of this message is to make it easier to spot incomplete/unfinished pieces of code when reading the debug log.
Informational messages should be used to keep the developer updated about what is happening. Examples where this should be used are when a typefind function has successfully determined the type of the stream or when an mp3 plugin detects the format to be used. (“This file has mono sound.”)
Debugging messages should be used when something common happens that is not the expected default behavior, or something that’s useful to know but doesn’t happen all the time (ie. per loop iteration or buffer processed or event handled). An example would be notifications about state changes or receiving/sending of events.
Log messages are messages that are very common but might be useful to know. As a rule of thumb a pipeline that is running as expected should never output anything else but LOG messages whilst processing data. Use this log level to log recurring information in chain functions and loop functions, for example.
Tracing-related messages. Examples for this are referencing/dereferencing of objects.
memory dump messages are used to log (small) chunks of data as memory dumps in the log. They will be displayed as hexdump with ASCII characters.
The number of defined debugging levels.
Implementations
Trait Implementations
impl Clone for DebugLevel
[src]
impl Clone for DebugLevel
[src]fn clone(&self) -> DebugLevel
[src]
fn clone(&self) -> DebugLevel
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for DebugLevel
[src]
impl Debug for DebugLevel
[src]impl Display for DebugLevel
[src]
impl Display for DebugLevel
[src]impl<'a> FromValue<'a> for DebugLevel
[src]
impl<'a> FromValue<'a> for DebugLevel
[src]type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
unsafe fn from_value(value: &'a Value) -> Self
[src]
unsafe fn from_value(value: &'a Value) -> Self
[src]Get the contained value from a Value
. Read more
impl Hash for DebugLevel
[src]
impl Hash for DebugLevel
[src]impl Ord for DebugLevel
[src]
impl Ord for DebugLevel
[src]impl PartialEq<DebugLevel> for DebugLevel
[src]
impl PartialEq<DebugLevel> for DebugLevel
[src]fn eq(&self, other: &DebugLevel) -> bool
[src]
fn eq(&self, other: &DebugLevel) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &DebugLevel) -> bool
[src]
fn ne(&self, other: &DebugLevel) -> bool
[src]This method tests for !=
.
impl PartialOrd<DebugLevel> for DebugLevel
[src]
impl PartialOrd<DebugLevel> for DebugLevel
[src]fn partial_cmp(&self, other: &DebugLevel) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &DebugLevel) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl StaticType for DebugLevel
[src]
impl StaticType for DebugLevel
[src]fn static_type() -> Type
[src]
fn static_type() -> Type
[src]Returns the type identifier of Self
.
impl ToValue for DebugLevel
[src]
impl ToValue for DebugLevel
[src]impl ValueType for DebugLevel
[src]
impl ValueType for DebugLevel
[src]impl Copy for DebugLevel
[src]
impl Eq for DebugLevel
[src]
impl StructuralEq for DebugLevel
[src]
impl StructuralPartialEq for DebugLevel
[src]
Auto Trait Implementations
impl RefUnwindSafe for DebugLevel
impl Send for DebugLevel
impl Sync for DebugLevel
impl Unpin for DebugLevel
impl UnwindSafe for DebugLevel
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
pub fn to_send_value(&self) -> SendValue
[src]Returns a SendValue
clone of self
.