pub struct Generation(/* private fields */);
Expand description
A counter for the server generation.
This counter is increased by one each time the server restarts itself when the configuration file is updated.
Implementations§
Source§impl Generation
impl Generation
Trait Implementations§
Source§impl AsRef<u32> for Generation
impl AsRef<u32> for Generation
Source§impl Clone for Generation
impl Clone for Generation
Source§fn clone(&self) -> Generation
fn clone(&self) -> Generation
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Generation
impl Debug for Generation
Source§impl Default for Generation
impl Default for Generation
Source§fn default() -> Generation
fn default() -> Generation
Returns the “default value” for a type. Read more
Source§impl Deref for Generation
impl Deref for Generation
Source§impl Display for Generation
impl Display for Generation
Source§impl From<Generation> for u32
impl From<Generation> for u32
Source§fn from(value: Generation) -> u32
fn from(value: Generation) -> u32
Converts to this type from the input type.
Source§impl From<u32> for Generation
impl From<u32> for Generation
Source§impl PartialEq for Generation
impl PartialEq for Generation
impl Copy for Generation
impl Eq for Generation
impl StructuralPartialEq for Generation
Auto Trait Implementations§
impl Freeze for Generation
impl RefUnwindSafe for Generation
impl Send for Generation
impl Sync for Generation
impl Unpin for Generation
impl UnwindSafe for Generation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.