pub struct GatewayIdGenerator { /* private fields */ }Expand description
Generates sequential, prefixed gateway ids of the form prefix_NNNNNN.
Counting is deterministic: ids advance monotonically from a fixed start, which makes generated ids reproducible across runs.
Implementations§
Trait Implementations§
Source§impl Clone for GatewayIdGenerator
impl Clone for GatewayIdGenerator
Source§fn clone(&self) -> GatewayIdGenerator
fn clone(&self) -> GatewayIdGenerator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GatewayIdGenerator
impl Debug for GatewayIdGenerator
impl Eq for GatewayIdGenerator
Source§impl PartialEq for GatewayIdGenerator
impl PartialEq for GatewayIdGenerator
Source§fn eq(&self, other: &GatewayIdGenerator) -> bool
fn eq(&self, other: &GatewayIdGenerator) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GatewayIdGenerator
Auto Trait Implementations§
impl Freeze for GatewayIdGenerator
impl RefUnwindSafe for GatewayIdGenerator
impl Send for GatewayIdGenerator
impl Sync for GatewayIdGenerator
impl Unpin for GatewayIdGenerator
impl UnsafeUnpin for GatewayIdGenerator
impl UnwindSafe for GatewayIdGenerator
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