pub struct MemoryBindingSequenceStore(/* private fields */);Expand description
In-process sequences — tests and single-process deployments. Clones share one map.
Implementations§
Trait Implementations§
Source§impl BindingSequenceStore for MemoryBindingSequenceStore
impl BindingSequenceStore for MemoryBindingSequenceStore
Source§fn next_binding_seq<'life0, 'life1, 'async_trait>(
&'life0 self,
device: &'life1 DeviceId,
now: i64,
) -> Pin<Box<dyn Future<Output = Result<u64, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn next_binding_seq<'life0, 'life1, 'async_trait>(
&'life0 self,
device: &'life1 DeviceId,
now: i64,
) -> Pin<Box<dyn Future<Output = Result<u64, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Advance
device’s sequence by next_binding_seq and return it, as
one atomic step: two concurrent mints for one device never share a
sequence.Source§impl Clone for MemoryBindingSequenceStore
impl Clone for MemoryBindingSequenceStore
Source§impl Debug for MemoryBindingSequenceStore
impl Debug for MemoryBindingSequenceStore
Auto Trait Implementations§
impl Freeze for MemoryBindingSequenceStore
impl RefUnwindSafe for MemoryBindingSequenceStore
impl Send for MemoryBindingSequenceStore
impl Sync for MemoryBindingSequenceStore
impl Unpin for MemoryBindingSequenceStore
impl UnsafeUnpin for MemoryBindingSequenceStore
impl UnwindSafe for MemoryBindingSequenceStore
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