pub enum FileOpenBehaviour {
Truncate,
Append,
}
Expand description
How to treat a newly created log file in Writer::File
.
Variants§
Trait Implementations§
source§impl Clone for FileOpenBehaviour
impl Clone for FileOpenBehaviour
source§fn clone(&self) -> FileOpenBehaviour
fn clone(&self) -> FileOpenBehaviour
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 FileOpenBehaviour
impl Debug for FileOpenBehaviour
source§impl<'de> Deserialize<'de> for FileOpenBehaviour
impl<'de> Deserialize<'de> for FileOpenBehaviour
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for FileOpenBehaviour
impl Hash for FileOpenBehaviour
source§impl Ord for FileOpenBehaviour
impl Ord for FileOpenBehaviour
source§fn cmp(&self, other: &FileOpenBehaviour) -> Ordering
fn cmp(&self, other: &FileOpenBehaviour) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for FileOpenBehaviour
impl PartialEq for FileOpenBehaviour
source§fn eq(&self, other: &FileOpenBehaviour) -> bool
fn eq(&self, other: &FileOpenBehaviour) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FileOpenBehaviour
impl PartialOrd for FileOpenBehaviour
source§fn partial_cmp(&self, other: &FileOpenBehaviour) -> Option<Ordering>
fn partial_cmp(&self, other: &FileOpenBehaviour) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for FileOpenBehaviour
impl Serialize for FileOpenBehaviour
impl Eq for FileOpenBehaviour
impl StructuralPartialEq for FileOpenBehaviour
Auto Trait Implementations§
impl Freeze for FileOpenBehaviour
impl RefUnwindSafe for FileOpenBehaviour
impl Send for FileOpenBehaviour
impl Sync for FileOpenBehaviour
impl Unpin for FileOpenBehaviour
impl UnwindSafe for FileOpenBehaviour
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