Enum gstreamer::DebugLevel
source · #[non_exhaustive]pub enum DebugLevel {
None,
Error,
Warning,
Fixme,
Info,
Debug,
Log,
Trace,
Memdump,
}
Expand description
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)§
This enum is marked as non-exhaustive
None
No debugging level specified or desired. Used to deactivate debugging output.
Error
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
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
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.
Info
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.”)
Debug
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
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.
Trace
Tracing-related messages. Examples for this are referencing/dereferencing of objects.
Memdump
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.
Implementations§
Trait Implementations§
source§impl Clone for DebugLevel
impl Clone for DebugLevel
source§fn clone(&self) -> DebugLevel
fn clone(&self) -> DebugLevel
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DebugLevel
impl Debug for DebugLevel
source§impl Display for DebugLevel
impl Display for DebugLevel
source§impl From<DebugLevel> for Value
impl From<DebugLevel> for Value
source§fn from(v: DebugLevel) -> Self
fn from(v: DebugLevel) -> Self
source§impl<'a> FromValue<'a> for DebugLevel
impl<'a> FromValue<'a> for DebugLevel
§type Checker = GenericValueTypeChecker<DebugLevel>
type Checker = GenericValueTypeChecker<DebugLevel>
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moresource§impl HasParamSpec for DebugLevel
impl HasParamSpec for DebugLevel
type ParamSpec = ParamSpecEnum
§type SetValue = DebugLevel
type SetValue = DebugLevel
type BuilderFn = fn(_: &str, _: DebugLevel) -> ParamSpecEnumBuilder<'_, DebugLevel>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for DebugLevel
impl Hash for DebugLevel
source§impl Ord for DebugLevel
impl Ord for DebugLevel
source§fn cmp(&self, other: &DebugLevel) -> Ordering
fn cmp(&self, other: &DebugLevel) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for DebugLevel
impl PartialEq for DebugLevel
source§fn eq(&self, other: &DebugLevel) -> bool
fn eq(&self, other: &DebugLevel) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DebugLevel
impl PartialOrd for DebugLevel
source§fn partial_cmp(&self, other: &DebugLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &DebugLevel) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for DebugLevel
impl StaticType for DebugLevel
source§fn static_type() -> Type
fn static_type() -> Type
Self
.source§impl ToValue for DebugLevel
impl ToValue for DebugLevel
source§impl ValueType for DebugLevel
impl ValueType for DebugLevel
§type Type = DebugLevel
type Type = DebugLevel
Type
from. Read moreimpl Copy for DebugLevel
impl Eq for DebugLevel
impl StructuralPartialEq for DebugLevel
Auto Trait Implementations§
impl Freeze for DebugLevel
impl RefUnwindSafe for DebugLevel
impl Send for DebugLevel
impl Sync for DebugLevel
impl Unpin for DebugLevel
impl UnwindSafe for DebugLevel
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.