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.

This is supported 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 ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.