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§

Returns the threshold of a DebugCategory.

Returns

the DebugLevel that is used as threshold.

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.

Returns the name of a debug category.

Returns

the name of the category.

Returns the description of a debug category.

Returns

the description of the category.

Logs without checking the log level.

Logs without checking the log level.

Available on crate feature v1_22 only.
Available on crate feature v1_22 only.
Available on crate feature v1_22 only.

Logs without checking the log level.

Available on crate feature v1_22 only.

Logs without checking the log level.

Available on crate feature v1_18 only.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.