Enum syslog::LoggerBackend
source · pub enum LoggerBackend {
Unix(UnixDatagram),
UnixStream(BufWriter<UnixStream>),
Udp(UdpSocket, SocketAddr),
Tcp(BufWriter<TcpStream>),
}
Variants§
Unix(UnixDatagram)
Unix socket, temp file path, log file path
UnixStream(BufWriter<UnixStream>)
Udp(UdpSocket, SocketAddr)
Tcp(BufWriter<TcpStream>)
Trait Implementations§
source§impl Write for LoggerBackend
impl Write for LoggerBackend
source§fn write(&mut self, message: &[u8]) -> Result<usize>
fn write(&mut self, message: &[u8]) -> Result<usize>
Sends a message directly, without any formatting
source§fn write_fmt(&mut self, args: Arguments<'_>) -> Result<()>
fn write_fmt(&mut self, args: Arguments<'_>) -> Result<()>
Writes a formatted string into this writer, returning any error
encountered. Read more
source§fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered
contents reach their destination. Read more
source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (
can_vector
)1.0.0 · source§fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read more
Auto Trait Implementations§
impl Freeze for LoggerBackend
impl RefUnwindSafe for LoggerBackend
impl Send for LoggerBackend
impl Sync for LoggerBackend
impl Unpin for LoggerBackend
impl UnwindSafe for LoggerBackend
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