pub struct CaptureHandle { /* private fields */ }Expand description
Handle shared between the installed CaptureLayer and main. main keeps one clone to
arm after loading the config; the layer keeps another to read it.
Implementations§
Source§impl CaptureHandle
impl CaptureHandle
Sourcepub fn arm(&self, ring: Arc<CaptureRing>, sink: CaptureSink)
pub fn arm(&self, ring: Arc<CaptureRing>, sink: CaptureSink)
Attach the ring + shipper sink, enabling capture. Idempotent: a second call is a no-op (the feature is armed exactly once at boot).
Trait Implementations§
Source§impl Clone for CaptureHandle
impl Clone for CaptureHandle
Auto Trait Implementations§
impl Freeze for CaptureHandle
impl RefUnwindSafe for CaptureHandle
impl Send for CaptureHandle
impl Sync for CaptureHandle
impl Unpin for CaptureHandle
impl UnsafeUnpin for CaptureHandle
impl UnwindSafe for CaptureHandle
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