pub struct UnixSocketHookSink { /* private fields */ }Expand description
A HookSink that sends events over a Unix domain socket.
Each event is serialized as a single JSON line ({"at": "...", "event": {...}}\n)
and written to the socket. If the socket is not available (listener not running),
the event is silently dropped - hook sinks are best-effort observability, not
control flow.
On non-Unix platforms this struct exists but its HookSink::emit is a no-op.
Implementations§
Trait Implementations§
Source§impl Clone for UnixSocketHookSink
impl Clone for UnixSocketHookSink
Source§fn clone(&self) -> UnixSocketHookSink
fn clone(&self) -> UnixSocketHookSink
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UnixSocketHookSink
impl Debug for UnixSocketHookSink
Source§impl HookSink for UnixSocketHookSink
impl HookSink for UnixSocketHookSink
Auto Trait Implementations§
impl Freeze for UnixSocketHookSink
impl RefUnwindSafe for UnixSocketHookSink
impl Send for UnixSocketHookSink
impl Sync for UnixSocketHookSink
impl Unpin for UnixSocketHookSink
impl UnsafeUnpin for UnixSocketHookSink
impl UnwindSafe for UnixSocketHookSink
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