Enum glib::GlibLoggerDomain
source · [−]pub enum GlibLoggerDomain {
None,
CrateTarget,
CratePath,
}
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
sourceimpl Clone for GlibLoggerDomain
impl Clone for GlibLoggerDomain
sourcefn clone(&self) -> GlibLoggerDomain
fn clone(&self) -> GlibLoggerDomain
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 GlibLoggerDomain
impl Debug for GlibLoggerDomain
sourceimpl PartialEq<GlibLoggerDomain> for GlibLoggerDomain
impl PartialEq<GlibLoggerDomain> for GlibLoggerDomain
impl Copy for GlibLoggerDomain
impl Eq for GlibLoggerDomain
impl StructuralEq for GlibLoggerDomain
impl StructuralPartialEq for GlibLoggerDomain
Auto Trait Implementations
impl RefUnwindSafe for GlibLoggerDomain
impl Send for GlibLoggerDomain
impl Sync for GlibLoggerDomain
impl Unpin for GlibLoggerDomain
impl UnwindSafe for GlibLoggerDomain
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