pub struct FilePeerNonceStore { /* private fields */ }Expand description
Durable process-safe nonce store for Runtime instances sharing one volume.
Implementations§
Trait Implementations§
Source§impl Clone for FilePeerNonceStore
impl Clone for FilePeerNonceStore
Source§fn clone(&self) -> FilePeerNonceStore
fn clone(&self) -> FilePeerNonceStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FilePeerNonceStore
impl Debug for FilePeerNonceStore
Source§impl PeerNonceStore for FilePeerNonceStore
impl PeerNonceStore for FilePeerNonceStore
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 FilePeerNonceStore
impl RefUnwindSafe for FilePeerNonceStore
impl Send for FilePeerNonceStore
impl Sync for FilePeerNonceStore
impl Unpin for FilePeerNonceStore
impl UnsafeUnpin for FilePeerNonceStore
impl UnwindSafe for FilePeerNonceStore
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