Struct metrics_util::Generation [−][src]
pub struct Generation(_);
Expand description
Generation counter.
Used for denoting the generation of a given handle, which is used to provide compare-and-swap deletion semantics i.e. if the generation used to request deletion for a handle is behind the current generation of the handle, then the deletion will not proceed.
Trait Implementations
impl Clone for Generation
[src]
impl Clone for Generation
[src]fn clone(&self) -> Generation
[src]
fn clone(&self) -> Generation
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for Generation
[src]
impl Debug for Generation
[src]impl Default for Generation
[src]
impl Default for Generation
[src]fn default() -> Generation
[src]
fn default() -> Generation
[src]Returns the “default value” for a type. Read more
impl PartialEq<Generation> for Generation
[src]
impl PartialEq<Generation> for Generation
[src]fn eq(&self, other: &Generation) -> bool
[src]
fn eq(&self, other: &Generation) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &Generation) -> bool
[src]
fn ne(&self, other: &Generation) -> bool
[src]This method tests for !=
.
impl StructuralPartialEq for Generation
[src]
Auto Trait Implementations
impl RefUnwindSafe for Generation
impl Send for Generation
impl Sync for Generation
impl Unpin for Generation
impl UnwindSafe for Generation
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
[src]
impl<T> Pointable for T
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more