#[non_exhaustive]pub enum LogFileMode {
Append,
Overwrite,
}Expand description
Initialization policy for an existing per-options log file.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Append
Retain existing content and add this logging session after it.
Overwrite
Truncate existing content exactly once before this logging session’s first record.
Trait Implementations§
Source§impl Clone for LogFileMode
impl Clone for LogFileMode
Source§fn clone(&self) -> LogFileMode
fn clone(&self) -> LogFileMode
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 LogFileMode
impl Debug for LogFileMode
Source§impl Display for LogFileMode
impl Display for LogFileMode
Source§impl Hash for LogFileMode
impl Hash for LogFileMode
Source§impl PartialEq for LogFileMode
impl PartialEq for LogFileMode
impl Copy for LogFileMode
impl Eq for LogFileMode
impl StructuralPartialEq for LogFileMode
Auto Trait Implementations§
impl Freeze for LogFileMode
impl RefUnwindSafe for LogFileMode
impl Send for LogFileMode
impl Sync for LogFileMode
impl Unpin for LogFileMode
impl UnwindSafe for LogFileMode
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.