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 Forget for EventsSplitClient
impl Freeze for EventsSplitClientwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<Chan<QueuedAppend, Semaphore>> is !null: Freeze,
PhantomData<ArcInner<Chan<QueuedAppend, Semaphore>>>: Freeze,
*const ArcInner<ForwardingCounters> is !null: Freeze,
PhantomData<ArcInner<ForwardingCounters>>: Freeze,
*const ArcInner<Atomic<bool>> is !null: Freeze,
PhantomData<ArcInner<Atomic<bool>>>: Freeze,
*const ArcInner<dyn EventStore> is !null: Freeze,
PhantomData<ArcInner<dyn EventStore>>: Freeze,
impl Move for EventsSplitClient
impl Send for EventsSplitClient
impl Sync for EventsSplitClient
impl Unpin for EventsSplitClient
impl UnsafeUnpin for EventsSplitClientwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Chan<QueuedAppend, Semaphore>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Chan<QueuedAppend, Semaphore>>>: UnsafeUnpin,
*const ArcInner<ForwardingCounters> is !null: UnsafeUnpin,
PhantomData<ArcInner<ForwardingCounters>>: UnsafeUnpin,
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
*const ArcInner<dyn EventStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn EventStore>>: UnsafeUnpin,
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