Struct fluvio::metadata::store::EpochCounter[]

pub struct EpochCounter<T> { /* fields omitted */ }

Keep track of changes to object using epoch for every changes to objects, epoch counter must be incremented

Implementations

impl<T> EpochCounter<T>

pub fn new(inner: T) -> EpochCounter<T>

pub fn new_with_epoch<E>(inner: T, epoch: E) -> EpochCounter<T> where
    E: Into<i64>, 

pub fn inner(&self) -> &T

pub fn inner_mut(&mut self) -> &mut T

pub fn inner_owned(self) -> T

pub fn epoch(&self) -> i64

pub fn increment(&mut self)

pub fn decrement(&mut self)

Trait Implementations

impl<T> Clone for EpochCounter<T> where
    T: Clone

impl<T> Debug for EpochCounter<T> where
    T: Debug

impl<T> Default for EpochCounter<T> where
    T: Default

impl<T> Deref for EpochCounter<T>

type Target = T

The resulting type after dereferencing.

impl<T> DerefMut for EpochCounter<T>

impl<T> Display for EpochCounter<T>

impl<T> Eq for EpochCounter<T> where
    T: Eq

impl<T> From<T> for EpochCounter<T>

impl<T> Hash for EpochCounter<T> where
    T: Hash

impl<T> PartialEq<EpochCounter<T>> for EpochCounter<T> where
    T: PartialEq<T>, 

Auto Trait Implementations

impl<T> RefUnwindSafe for EpochCounter<T> where
    T: RefUnwindSafe

impl<T> Send for EpochCounter<T> where
    T: Send

impl<T> Sync for EpochCounter<T> where
    T: Sync

impl<T> Unpin for EpochCounter<T> where
    T: Unpin

impl<T> UnwindSafe for EpochCounter<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]