Skip to main content

DebugCategory

Struct DebugCategory 

Source
#[repr(transparent)]
pub struct DebugCategory(Option<NonNull<GstDebugCategory>>);

Tuple Fields§

§0: Option<NonNull<GstDebugCategory>>

Implementations§

Source§

impl DebugCategory

Source

pub fn new( name: &str, color: DebugColorFlags, description: Option<&str>, ) -> DebugCategory

Source

pub fn get(name: &str) -> Option<DebugCategory>

Source

pub fn threshold(self) -> DebugLevel

Source

pub fn set_threshold(self, threshold: DebugLevel)

Source

pub fn reset_threshold(self)

Source

pub fn color(self) -> DebugColorFlags

Source

pub fn name<'a>(self) -> &'a str

Source

pub fn description<'a>(self) -> Option<&'a str>

Source

pub fn log( self, obj: Option<&impl IsA<Object>>, level: DebugLevel, file: &GStr, function: &str, line: u32, args: Arguments<'_>, )

Source

pub fn log_literal( self, obj: Option<&impl IsA<Object>>, level: DebugLevel, file: &GStr, function: &str, line: u32, msg: &GStr, )

Source

fn log_unfiltered_internal( self, obj: Option<&Object>, level: DebugLevel, file: &GStr, function: &str, line: u32, args: Arguments<'_>, )

Logs without checking the log level.

Source

fn log_literal_unfiltered_internal( self, obj: Option<&Object>, level: DebugLevel, file: &GStr, function: &str, line: u32, msg: &GStr, )

Source

pub fn all_categories() -> SList<DebugCategory>

Source

pub fn get_line( &self, level: DebugLevel, file: &GStr, function: &GStr, line: u32, object: Option<&LoggedObject>, message: &DebugMessage, ) -> Option<GString>

Source

pub fn as_ptr(&self) -> *mut GstDebugCategory

Trait Implementations§

Source§

impl Clone for DebugCategory

Source§

fn clone(&self) -> DebugCategory

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for DebugCategory

Source§

impl Debug for DebugCategory

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DebugLogger for DebugCategory

Source§

fn log_unfiltered( &self, obj: Option<&impl IsA<Object>>, level: DebugLevel, file: &GStr, function: &str, line: u32, args: Arguments<'_>, )

Logs without checking the log level.

Source§

fn above_threshold(&self, level: DebugLevel) -> bool

Source§

fn log_literal_unfiltered( &self, obj: Option<&impl IsA<Object>>, level: DebugLevel, file: &GStr, function: &str, line: u32, msg: &GStr, )

Source§

impl Eq for DebugCategory

Source§

impl FromGlibPtrFull<*mut GstDebugCategory> for DebugCategory

Source§

impl FromGlibPtrNone<*mut GstDebugCategory> for DebugCategory

Source§

impl GlibPtrDefault for DebugCategory

Source§

impl Hash for DebugCategory

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for DebugCategory

Source§

fn eq(&self, other: &DebugCategory) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Send for DebugCategory

Source§

impl StructuralPartialEq for DebugCategory

Source§

impl Sync for DebugCategory

Source§

impl TransparentPtrType for DebugCategory

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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 more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> TransparentType for T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.