pub struct UuidFactoryRegistry { /* private fields */ }Expand description
A registry that manages multiple UUID factories for different generator types.
This ensures a single source of truth for UUID generation across the system.
Implementations§
Source§impl UuidFactoryRegistry
impl UuidFactoryRegistry
Sourcepub fn get_factory(
&mut self,
generator_type: GeneratorType,
) -> &DeterministicUuidFactory
pub fn get_factory( &mut self, generator_type: GeneratorType, ) -> &DeterministicUuidFactory
Get or create a factory for a specific generator type.
Sourcepub fn next_uuid(&mut self, generator_type: GeneratorType) -> Uuid
pub fn next_uuid(&mut self, generator_type: GeneratorType) -> Uuid
Generate the next UUID for a specific generator type.
Sourcepub fn get_counter(&self, generator_type: GeneratorType) -> Option<u64>
pub fn get_counter(&self, generator_type: GeneratorType) -> Option<u64>
Get the current counter for a generator type.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UuidFactoryRegistry
impl RefUnwindSafe for UuidFactoryRegistry
impl Send for UuidFactoryRegistry
impl Sync for UuidFactoryRegistry
impl Unpin for UuidFactoryRegistry
impl UnwindSafe for UuidFactoryRegistry
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