pub struct InMemoryPeerNonceStore { /* private fields */ }Expand description
Bounded process-local nonce store used by embedded and test deployments.
Trait Implementations§
Source§impl Debug for InMemoryPeerNonceStore
impl Debug for InMemoryPeerNonceStore
Source§impl Default for InMemoryPeerNonceStore
impl Default for InMemoryPeerNonceStore
Source§fn default() -> InMemoryPeerNonceStore
fn default() -> InMemoryPeerNonceStore
Returns the “default value” for a type. Read more
Source§impl PeerNonceStore for InMemoryPeerNonceStore
impl PeerNonceStore for InMemoryPeerNonceStore
Source§fn check_and_record(
&self,
nonce: &str,
expires_at_ms: u64,
now_ms: u64,
) -> Result<(), PeerRpcError>
fn check_and_record( &self, nonce: &str, expires_at_ms: u64, now_ms: u64, ) -> Result<(), PeerRpcError>
Rejects a live duplicate or records the nonce until
expires_at_ms.Auto Trait Implementations§
impl !Freeze for InMemoryPeerNonceStore
impl RefUnwindSafe for InMemoryPeerNonceStore
impl Send for InMemoryPeerNonceStore
impl Sync for InMemoryPeerNonceStore
impl Unpin for InMemoryPeerNonceStore
impl UnsafeUnpin for InMemoryPeerNonceStore
impl UnwindSafe for InMemoryPeerNonceStore
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