Struct fluvio_stream_model::epoch::DualEpochCounter
source · pub struct DualEpochCounter<T> { /* private fields */ }
Expand description
Keep track of internal changes to object Track 3 different changes (spec,status,meta)
Implementations§
source§impl<T> DualEpochCounter<T>
impl<T> DualEpochCounter<T>
pub fn new(inner: T) -> Self
pub fn spec_epoch(&self) -> Epoch
pub fn status_epoch(&self) -> Epoch
pub fn meta_epoch(&self) -> Epoch
pub fn inner(&self) -> &T
pub fn inner_mut(&mut self) -> &mut T
pub fn inner_owned(self) -> T
Trait Implementations§
source§impl<T: Clone> Clone for DualEpochCounter<T>
impl<T: Clone> Clone for DualEpochCounter<T>
source§fn clone(&self) -> DualEpochCounter<T>
fn clone(&self) -> DualEpochCounter<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for DualEpochCounter<T>
impl<T: Debug> Debug for DualEpochCounter<T>
source§impl<T: Default> Default for DualEpochCounter<T>
impl<T: Default> Default for DualEpochCounter<T>
source§fn default() -> DualEpochCounter<T>
fn default() -> DualEpochCounter<T>
Returns the “default value” for a type. Read more
source§impl<T> Deref for DualEpochCounter<T>
impl<T> Deref for DualEpochCounter<T>
source§impl<T> DerefMut for DualEpochCounter<T>
impl<T> DerefMut for DualEpochCounter<T>
Auto Trait Implementations§
impl<T> Freeze for DualEpochCounter<T>where
T: Freeze,
impl<T> RefUnwindSafe for DualEpochCounter<T>where
T: RefUnwindSafe,
impl<T> Send for DualEpochCounter<T>where
T: Send,
impl<T> Sync for DualEpochCounter<T>where
T: Sync,
impl<T> Unpin for DualEpochCounter<T>where
T: Unpin,
impl<T> UnwindSafe for DualEpochCounter<T>where
T: UnwindSafe,
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