pub struct UnixTransport { /* private fields */ }Expand description
RFC 6587 §3.4.1 octet-count framing over a Unix stream socket.
Connects lazily on the first send call. If the
connection is lost, the next send re-establishes it automatically.
Only the write half of the underlying socket is retained. The read half
is shut down (SHUT_RD) immediately after connecting, enforcing write-only
direction at both the type level and the OS level.
Thread-safe: the socket is protected by a tokio::sync::Mutex.
Implementations§
Trait Implementations§
Source§impl Transport for UnixTransport
impl Transport for UnixTransport
Source§async fn send(&self, msg: &SyslogMessage) -> Result<(), ClientError>
async fn send(&self, msg: &SyslogMessage) -> Result<(), ClientError>
Send a single syslog message. Read more
Auto Trait Implementations§
impl !Freeze for UnixTransport
impl !RefUnwindSafe for UnixTransport
impl Send for UnixTransport
impl Sync for UnixTransport
impl Unpin for UnixTransport
impl UnsafeUnpin for UnixTransport
impl UnwindSafe for UnixTransport
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