pub struct EventsSplitClient { /* private fields */ }Expand description
One per domain process: the connection to the events daemon plus the bounded fire-and-forget append queue.
Synchronous round-trips each own a fresh connection: there is no shared request connection and no lock in front of one, so concurrent reads and audit flushes never queue behind a single stalled call, and the round-trip timeout bounds each caller’s whole attempt.
Implementations§
Source§impl EventsSplitClient
impl EventsSplitClient
Sourcepub fn new(socket_path: PathBuf) -> RuntimeResult<Arc<Self>>
pub fn new(socket_path: PathBuf) -> RuntimeResult<Arc<Self>>
Build the client and spawn its background forwarder.
Sourcepub fn new_with_queue_depth(
socket_path: PathBuf,
queue_depth: usize,
) -> RuntimeResult<Arc<Self>>
pub fn new_with_queue_depth( socket_path: PathBuf, queue_depth: usize, ) -> RuntimeResult<Arc<Self>>
Self::new with an explicit fire-and-forget queue bound. Tests use a
tiny depth to exercise the overflow drop arm deterministically.
Sourcepub fn metrics(&self) -> EventsForwardingMetrics
pub fn metrics(&self) -> EventsForwardingMetrics
Snapshot of the fire-and-forget lane’s health.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EventsSplitClient
impl !UnwindSafe for EventsSplitClient
impl Freeze for EventsSplitClient
impl Send for EventsSplitClient
impl Sync for EventsSplitClient
impl Unpin for EventsSplitClient
impl UnsafeUnpin for EventsSplitClient
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more