pub struct RecentPathRequests<C>where
C: RecentPathRequestTable,{ /* private fields */ }Implementations§
Source§impl<C> RecentPathRequests<C>where
C: RecentPathRequestTable,
impl<C> RecentPathRequests<C>where
C: RecentPathRequestTable,
pub fn mark_seen_at(&mut self, destination: DestinationHash, now: InstantMillis)
pub fn is_throttled( &self, destination: &DestinationHash, now: InstantMillis, ) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<C> Debug for RecentPathRequests<C>where
C: Debug + RecentPathRequestTable,
impl<C> Debug for RecentPathRequests<C>where
C: Debug + RecentPathRequestTable,
Source§impl<C> Default for RecentPathRequests<C>where
C: Default + RecentPathRequestTable,
impl<C> Default for RecentPathRequests<C>where
C: Default + RecentPathRequestTable,
Source§fn default() -> RecentPathRequests<C>
fn default() -> RecentPathRequests<C>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<C> Freeze for RecentPathRequests<C>where
C: Freeze,
impl<C> RefUnwindSafe for RecentPathRequests<C>where
C: RefUnwindSafe,
impl<C> Send for RecentPathRequests<C>where
C: Send,
impl<C> Sync for RecentPathRequests<C>where
C: Sync,
impl<C> Unpin for RecentPathRequests<C>where
C: Unpin,
impl<C> UnsafeUnpin for RecentPathRequests<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for RecentPathRequests<C>where
C: UnwindSafe,
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