pub enum InvalidCharAction {
ReplaceWith(char),
Remove,
Warn,
Panic,
}
Expand description
What to do when a log message contains characters that are invalid in C strings.
Variants§
ReplaceWith(char)
Replace invalid characters with the provided character and try again
Remove
Remove invalid characters and try again
Warn
Print a warning to stderr and do not log to syslog
Panic
Panic
Trait Implementations§
source§impl Clone for InvalidCharAction
impl Clone for InvalidCharAction
source§fn clone(&self) -> InvalidCharAction
fn clone(&self) -> InvalidCharAction
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 Default for InvalidCharAction
impl Default for InvalidCharAction
impl Copy for InvalidCharAction
Auto Trait Implementations§
impl RefUnwindSafe for InvalidCharAction
impl Send for InvalidCharAction
impl Sync for InvalidCharAction
impl Unpin for InvalidCharAction
impl UnwindSafe for InvalidCharAction
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