pub struct CacheStatsService { /* private fields */ }Expand description
Outcome-aware segment that replaces the exchange body with a JSON snapshot
of the repository’s [CacheStats].
Implementations§
Source§impl CacheStatsService
impl CacheStatsService
pub fn new(repository: Arc<dyn CacheRepository>) -> Self
Trait Implementations§
Source§impl Clone for CacheStatsService
impl Clone for CacheStatsService
Source§impl OutcomePipeline for CacheStatsService
impl OutcomePipeline for CacheStatsService
Source§fn clone_box(&self) -> Box<dyn OutcomePipeline>
fn clone_box(&self) -> Box<dyn OutcomePipeline>
Clone the segment into a new boxed instance. Required because
Box<dyn OutcomePipeline> cannot directly derive Clone.Auto Trait Implementations§
impl !RefUnwindSafe for CacheStatsService
impl !UnwindSafe for CacheStatsService
impl Freeze for CacheStatsService
impl Send for CacheStatsService
impl Sync for CacheStatsService
impl Unpin for CacheStatsService
impl UnsafeUnpin for CacheStatsService
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