Struct gstreamer::DebugCategory
source · pub struct DebugCategory(_);
Implementations§
source§impl 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 above_threshold(self, level: DebugLevel) -> bool
pub fn color(self) -> DebugColorFlags
pub fn name<'a>(self) -> &'a str
pub fn description<'a>(self) -> Option<&'a str>
pub fn log( self, obj: Option<&impl IsA<Object>>, level: DebugLevel, file: &GStr, function: &str, line: u32, args: Arguments<'_> )
pub fn log_literal( self, obj: Option<&impl IsA<Object>>, level: DebugLevel, file: &GStr, function: &str, line: u32, msg: &GStr )
sourcepub fn log_unfiltered(
self,
obj: Option<&impl IsA<Object>>,
level: DebugLevel,
file: &GStr,
function: &str,
line: u32,
args: Arguments<'_>
)
pub 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.
sourcepub fn log_literal_unfiltered(
self,
obj: Option<&impl IsA<Object>>,
level: DebugLevel,
file: &GStr,
function: &str,
line: u32,
msg: &GStr
)
pub fn log_literal_unfiltered( self, obj: Option<&impl IsA<Object>>, level: DebugLevel, file: &GStr, function: &str, line: u32, msg: &GStr )
Logs without checking the log level.
pub fn log_id( self, id: impl AsRef<GStr>, level: DebugLevel, file: &GStr, function: &str, line: u32, args: Arguments<'_> )
Available on crate feature
v1_22
only.pub fn log_id_literal( self, id: impl AsRef<GStr>, level: DebugLevel, file: &GStr, function: &str, line: u32, msg: &GStr )
Available on crate feature
v1_22
only.sourcepub fn log_id_unfiltered(
self,
id: impl AsRef<GStr>,
level: DebugLevel,
file: &GStr,
function: &str,
line: u32,
args: Arguments<'_>
)
Available on crate feature v1_22
only.
pub fn log_id_unfiltered( self, id: impl AsRef<GStr>, level: DebugLevel, file: &GStr, function: &str, line: u32, args: Arguments<'_> )
v1_22
only.Logs without checking the log level.
sourcepub fn log_id_literal_unfiltered(
self,
id: impl AsRef<GStr>,
level: DebugLevel,
file: &GStr,
function: &str,
line: u32,
msg: &GStr
)
Available on crate feature v1_22
only.
pub fn log_id_literal_unfiltered( self, id: impl AsRef<GStr>, level: DebugLevel, file: &GStr, function: &str, line: u32, msg: &GStr )
v1_22
only.Logs without checking the log level.
pub fn all_categories() -> SList<DebugCategory>
pub fn get_line( &self, level: DebugLevel, file: &GStr, function: &GStr, line: u32, object: Option<&LoggedObject>, message: &DebugMessage ) -> Option<GString>
Available on crate feature
v1_18
only.Trait Implementations§
source§impl Clone for DebugCategory
impl Clone for DebugCategory
source§fn clone(&self) -> DebugCategory
fn clone(&self) -> DebugCategory
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DebugCategory
impl Debug for DebugCategory
source§impl FromGlibPtrFull<*mut GstDebugCategory> for DebugCategory
impl FromGlibPtrFull<*mut GstDebugCategory> for DebugCategory
source§unsafe fn from_glib_full(ptr: *mut GstDebugCategory) -> Self
unsafe fn from_glib_full(ptr: *mut GstDebugCategory) -> Self
Safety Read more
source§impl FromGlibPtrNone<*mut GstDebugCategory> for DebugCategory
impl FromGlibPtrNone<*mut GstDebugCategory> for DebugCategory
source§unsafe fn from_glib_none(ptr: *mut GstDebugCategory) -> Self
unsafe fn from_glib_none(ptr: *mut GstDebugCategory) -> Self
Safety Read more
source§impl GlibPtrDefault for DebugCategory
impl GlibPtrDefault for DebugCategory
type GlibType = *mut GstDebugCategory
source§impl PartialEq<DebugCategory> for DebugCategory
impl PartialEq<DebugCategory> for DebugCategory
source§fn 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 ==
.