pub struct MemoryNonceStore { /* private fields */ }Implementations§
Source§impl MemoryNonceStore
impl MemoryNonceStore
pub fn new() -> Self
pub fn with_ttl_secs(self, ttl_secs: u64) -> Self
Trait Implementations§
Source§impl Default for MemoryNonceStore
impl Default for MemoryNonceStore
Source§impl NonceStore for MemoryNonceStore
impl NonceStore for MemoryNonceStore
fn try_consume(&self, nonce: &[u8; 16]) -> Result<bool, A1StorageError>
fn try_consume_batch(&self, nonces: &[[u8; 16]]) -> Result<bool, A1StorageError>
fn is_consumed(&self, nonce: &[u8; 16]) -> Result<bool, A1StorageError>
fn mark_consumed(&self, nonce: &[u8; 16]) -> Result<(), A1StorageError>
fn health_check(&self) -> Result<(), A1StorageError>
Auto Trait Implementations§
impl !Freeze for MemoryNonceStore
impl RefUnwindSafe for MemoryNonceStore
impl Send for MemoryNonceStore
impl Sync for MemoryNonceStore
impl Unpin for MemoryNonceStore
impl UnsafeUnpin for MemoryNonceStore
impl UnwindSafe for MemoryNonceStore
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