pub struct SyncNonceAdapter<S>(pub Arc<S>);Available on crate feature
async only.Tuple Fields§
§0: Arc<S>Trait Implementations§
Source§impl<S: NonceStore + 'static> AsyncNonceStore for SyncNonceAdapter<S>
impl<S: NonceStore + 'static> AsyncNonceStore for SyncNonceAdapter<S>
fn try_consume<'life0, 'life1, 'async_trait>(
&'life0 self,
nonce: &'life1 [u8; 16],
) -> Pin<Box<dyn Future<Output = Result<bool, A1StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn try_consume_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
nonces: &'life1 [[u8; 16]],
) -> Pin<Box<dyn Future<Output = Result<bool, A1StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn is_consumed<'life0, 'life1, 'async_trait>(
&'life0 self,
nonce: &'life1 [u8; 16],
) -> Pin<Box<dyn Future<Output = Result<bool, A1StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn mark_consumed<'life0, 'life1, 'async_trait>(
&'life0 self,
nonce: &'life1 [u8; 16],
) -> Pin<Box<dyn Future<Output = Result<(), A1StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn health_check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), A1StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<S> Freeze for SyncNonceAdapter<S>
impl<S> RefUnwindSafe for SyncNonceAdapter<S>where
S: RefUnwindSafe,
impl<S> Send for SyncNonceAdapter<S>
impl<S> Sync for SyncNonceAdapter<S>
impl<S> Unpin for SyncNonceAdapter<S>
impl<S> UnsafeUnpin for SyncNonceAdapter<S>
impl<S> UnwindSafe for SyncNonceAdapter<S>where
S: RefUnwindSafe,
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