pub struct CaptureSink { /* private fields */ }Expand description
The producer half held by the verdict-join layer: a non-blocking handle onto the shipper queue. Cloneable and cheap; dropping the last clone closes the channel and ends the shipper task.
Implementations§
Source§impl CaptureSink
impl CaptureSink
Sourcepub fn enqueue(&self, capture: CapturedRequest)
pub fn enqueue(&self, capture: CapturedRequest)
Enqueue a capture without blocking. On a full queue the capture is dropped and counted — the request path is never stalled by a slow/unreachable control-plane.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CaptureSink
impl RefUnwindSafe for CaptureSink
impl Send for CaptureSink
impl Sync for CaptureSink
impl Unpin for CaptureSink
impl UnsafeUnpin for CaptureSink
impl UnwindSafe for CaptureSink
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