pub struct AddressAllocator<S> { /* private fields */ }Expand description
O(retained journal) per new grant. Every fresh writer in the domain must use the same coordinator key; initialize above all previously issued identities. No background work, receipt deletion, blind retry or provider disposal.
Implementations§
Source§impl<S: AtomicJournalStore> AddressAllocator<S>
impl<S: AtomicJournalStore> AddressAllocator<S>
pub fn new( store: S, key: &str, first: u64, last: u64, options: AddressAllocatorOptions, ) -> Result<Self, LinkError>
pub fn into_store(self) -> S
pub fn snapshot(&mut self) -> Result<AddressAllocationSnapshot, LinkError>
Auto Trait Implementations§
impl<S> Freeze for AddressAllocator<S>where
S: Freeze,
impl<S> RefUnwindSafe for AddressAllocator<S>where
S: RefUnwindSafe,
impl<S> Send for AddressAllocator<S>where
S: Send,
impl<S> Sync for AddressAllocator<S>where
S: Sync,
impl<S> Unpin for AddressAllocator<S>where
S: Unpin,
impl<S> UnsafeUnpin for AddressAllocator<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for AddressAllocator<S>where
S: UnwindSafe,
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