Enum simplelog::ThreadLogMode
source · [−]pub enum ThreadLogMode {
IDs,
Names,
Both,
}
Expand description
Mode for logging the thread name or id or both.
Variants
IDs
Log thread ids only
Names
Log the thread names only
Both
If this thread is named, log the name. Otherwise, log the thread id.
Trait Implementations
sourceimpl Clone for ThreadLogMode
impl Clone for ThreadLogMode
sourcefn clone(&self) -> ThreadLogMode
fn clone(&self) -> ThreadLogMode
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 ThreadLogMode
impl Debug for ThreadLogMode
sourceimpl PartialEq<ThreadLogMode> for ThreadLogMode
impl PartialEq<ThreadLogMode> for ThreadLogMode
impl Copy for ThreadLogMode
impl StructuralPartialEq for ThreadLogMode
Auto Trait Implementations
impl RefUnwindSafe for ThreadLogMode
impl Send for ThreadLogMode
impl Sync for ThreadLogMode
impl Unpin for ThreadLogMode
impl UnwindSafe for ThreadLogMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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