pub struct CaptureSink(/* private fields */);Expand description
Default no-op; providers call this at Go’s logging_helpers call sites.
Implementations§
Source§impl CaptureSink
impl CaptureSink
pub fn new(observer: Arc<dyn CaptureObserver>) -> Self
pub fn enabled(&self) -> bool
Sourcepub fn logs_responses(&self) -> bool
pub fn logs_responses(&self) -> bool
Whether response chunks reach a log now: an observer is attached and keeps them.
pub fn record(&self, event: CaptureEvent<'_>)
Sourcepub fn record_request(&self, info: UpstreamRequest<'_>, body: &Bytes)
pub fn record_request(&self, info: UpstreamRequest<'_>, body: &Bytes)
Trait Implementations§
Source§impl Clone for CaptureSink
impl Clone for CaptureSink
Auto Trait Implementations§
impl !RefUnwindSafe for CaptureSink
impl !UnwindSafe for CaptureSink
impl Forget for CaptureSink
impl Freeze for CaptureSink
impl Move for CaptureSink
impl Send for CaptureSink
impl Sync for CaptureSink
impl Unpin for CaptureSink
impl UnsafeUnpin 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