Enum glib::GlibLoggerDomain
source · pub enum GlibLoggerDomain {
None,
CrateTarget,
CratePath,
}
Available on crate feature
log
only.Expand description
Enumeration of the possible domain handling behaviours for a
GlibLogger
.
In order to use this type, glib
must be built with the log
feature
enabled.
Variants§
None
Logs will have no domain specified.
CrateTarget
Logs will use the target
of the log crate as a domain; this allows
Rust code, like warn!(target: "my-domain", "...");
to log to the glib
logger using the specified domain.
CratePath
Logs will use the crate path as the log domain.
Trait Implementations§
source§impl Clone for GlibLoggerDomain
impl Clone for GlibLoggerDomain
source§fn clone(&self) -> GlibLoggerDomain
fn clone(&self) -> GlibLoggerDomain
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 GlibLoggerDomain
impl Debug for GlibLoggerDomain
source§impl PartialEq for GlibLoggerDomain
impl PartialEq for GlibLoggerDomain
source§fn eq(&self, other: &GlibLoggerDomain) -> bool
fn eq(&self, other: &GlibLoggerDomain) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GlibLoggerDomain
impl Eq for GlibLoggerDomain
impl StructuralPartialEq for GlibLoggerDomain
Auto Trait Implementations§
impl Freeze for GlibLoggerDomain
impl RefUnwindSafe for GlibLoggerDomain
impl Send for GlibLoggerDomain
impl Sync for GlibLoggerDomain
impl Unpin for GlibLoggerDomain
impl UnwindSafe for GlibLoggerDomain
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)