Struct gstreamer::DebugCategory
source · [−]pub struct DebugCategory(_);
Implementations
sourceimpl DebugCategory
impl DebugCategory
pub fn new(
name: &str,
color: DebugColorFlags,
description: Option<&str>
) -> DebugCategory
pub fn get(name: &str) -> Option<DebugCategory>
pub fn threshold(self) -> DebugLevel
pub fn set_threshold(self, threshold: DebugLevel)
pub fn reset_threshold(self)
pub fn color(self) -> DebugColorFlags
pub fn name<'a>(self) -> &'a str
pub fn description<'a>(self) -> Option<&'a str>
pub fn log<O: IsA<Object>>(
self,
obj: Option<&O>,
level: DebugLevel,
file: &str,
module: &str,
line: u32,
args: Arguments<'_>
)
pub fn all_categories() -> SList<DebugCategory>
pub fn get_line(
&self,
level: DebugLevel,
file: &str,
module: &str,
line: u32,
object: Option<&LoggedObject>,
message: &DebugMessage
) -> Option<GString>
This is supported on crate feature
v1_18
only.Trait Implementations
sourceimpl Clone for DebugCategory
impl Clone for DebugCategory
sourcefn clone(&self) -> DebugCategory
fn clone(&self) -> DebugCategory
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DebugCategory
impl Debug for DebugCategory
sourceimpl FromGlibPtrFull<*mut GstDebugCategory> for DebugCategory
impl FromGlibPtrFull<*mut GstDebugCategory> for DebugCategory
sourceunsafe fn from_glib_full(ptr: *mut GstDebugCategory) -> Self
unsafe fn from_glib_full(ptr: *mut GstDebugCategory) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*mut GstDebugCategory> for DebugCategory
impl FromGlibPtrNone<*mut GstDebugCategory> for DebugCategory
sourceunsafe fn from_glib_none(ptr: *mut GstDebugCategory) -> Self
unsafe fn from_glib_none(ptr: *mut GstDebugCategory) -> Self
Safety Read more
sourceimpl GlibPtrDefault for DebugCategory
impl GlibPtrDefault for DebugCategory
type GlibType = *mut GstDebugCategory
sourceimpl PartialEq<DebugCategory> for DebugCategory
impl PartialEq<DebugCategory> for DebugCategory
sourcefn eq(&self, other: &DebugCategory) -> bool
fn eq(&self, other: &DebugCategory) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DebugCategory) -> bool
fn ne(&self, other: &DebugCategory) -> bool
This method tests for !=
.
impl Copy for DebugCategory
impl Eq for DebugCategory
impl Send for DebugCategory
impl StructuralEq for DebugCategory
impl StructuralPartialEq for DebugCategory
impl Sync for DebugCategory
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more