pub struct CacheClearService { /* private fields */ }Expand description
Outcome-aware segment that clears the entire cache repository.
Err(e)→Failed(e).Ok(())→Completed(exchange)with the body unchanged.
Implementations§
Source§impl CacheClearService
impl CacheClearService
pub fn new(repository: Arc<dyn CacheRepository>) -> Self
Trait Implementations§
Source§impl Clone for CacheClearService
impl Clone for CacheClearService
Source§impl OutcomePipeline for CacheClearService
impl OutcomePipeline for CacheClearService
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 CacheClearService
impl !UnwindSafe for CacheClearService
impl Freeze for CacheClearService
impl Send for CacheClearService
impl Sync for CacheClearService
impl Unpin for CacheClearService
impl UnsafeUnpin for CacheClearService
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