pub struct Formatter3164 {
pub facility: Facility,
pub hostname: Option<String>,
pub process: String,
pub pid: u32,
}Fields§
§facility: Facility§hostname: Option<String>§process: String§pid: u32Trait Implementations§
Source§impl Clone for Formatter3164
impl Clone for Formatter3164
Source§fn clone(&self) -> Formatter3164
fn clone(&self) -> Formatter3164
Returns a duplicate 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 Formatter3164
impl Debug for Formatter3164
Source§impl Default for Formatter3164
impl Default for Formatter3164
Source§fn default() -> Self
fn default() -> Self
Returns a Formatter3164 with default settings.
The default settings are as follows:
facility:LOG_USER, as specified by POSIX.hostname: Automatically detected using thehostnamecrate, if possible.process: Automatically detected usingstd::env::current_exe, or if that fails, an empty string.pid: Automatically detected usinglibc::getpid.
Source§impl<T: Display> LogFormat<T> for Formatter3164
impl<T: Display> LogFormat<T> for Formatter3164
fn format<W: Write>( &self, w: &mut W, severity: Severity, message: T, ) -> Result<()>
fn emerg<W: Write>(&mut self, w: &mut W, message: T) -> Result<()>
fn alert<W: Write>(&mut self, w: &mut W, message: T) -> Result<()>
fn crit<W: Write>(&mut self, w: &mut W, message: T) -> Result<()>
fn err<W: Write>(&mut self, w: &mut W, message: T) -> Result<()>
fn warning<W: Write>(&mut self, w: &mut W, message: T) -> Result<()>
fn notice<W: Write>(&mut self, w: &mut W, message: T) -> Result<()>
fn info<W: Write>(&mut self, w: &mut W, message: T) -> Result<()>
fn debug<W: Write>(&mut self, w: &mut W, message: T) -> Result<()>
Auto Trait Implementations§
impl Freeze for Formatter3164
impl RefUnwindSafe for Formatter3164
impl Send for Formatter3164
impl Sync for Formatter3164
impl Unpin for Formatter3164
impl UnsafeUnpin for Formatter3164
impl UnwindSafe for Formatter3164
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