Struct gstreamer::DebugCategory
source · [−]pub struct DebugCategory(_);
Expand description
This is the struct that describes the categories. Once initialized with
GST_DEBUG_CATEGORY_INIT
, its values can’t be changed anymore.
Implementations
Sets the threshold of the category to the given level. Debug information will only be output if the threshold is lower or equal to the level of the debugging message.
Do not use this function in production code, because other functions may change the threshold of categories as side effect. It is however a nice function to use when debugging (even from gdb).
level
the DebugLevel
threshold to set.
Resets the threshold of the category to the default level. Debug information
will only be output if the threshold is lower or equal to the level of the
debugging message.
Use this function to set the threshold back to where it was after using
set_threshold()
.
Returns the color of a debug category used when printing output in this category.
Returns
the color of the category.
pub fn log<O: IsA<Object>>(
self,
obj: Option<&O>,
level: DebugLevel,
file: &str,
module: &str,
line: u32,
args: Arguments<'_>
)
pub fn get_line(
&self,
level: DebugLevel,
file: &str,
module: &str,
line: u32,
object: Option<&LoggedObject>,
message: &DebugMessage
) -> Option<GString>
v1_18
only.Trait Implementations
Safety Read more
Safety Read more
type GlibType = *mut GstDebugCategory
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more