pub struct FsRatchetStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Debug for FsRatchetStore
impl Debug for FsRatchetStore
Source§impl RatchetStore for FsRatchetStore
impl RatchetStore for FsRatchetStore
fn remember(&self, dest_hash: [u8; 16], entry: RatchetEntry) -> Result<()>
fn current( &self, dest_hash: &[u8; 16], now: f64, expiry_secs: f64, ) -> Result<Option<RatchetEntry>>
fn cleanup( &self, known_destinations: &HashSet<[u8; 16]>, now: f64, expiry_secs: f64, ) -> Result<RatchetCleanupStats>
Auto Trait Implementations§
impl !Freeze for FsRatchetStore
impl RefUnwindSafe for FsRatchetStore
impl Send for FsRatchetStore
impl Sync for FsRatchetStore
impl Unpin for FsRatchetStore
impl UnsafeUnpin for FsRatchetStore
impl UnwindSafe for FsRatchetStore
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
Source§impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more