pub struct FixedRecentPathRequestTable<const MAX_RECENT_PATH_REQUESTS: usize> { /* private fields */ }Trait Implementations§
Source§impl<const MAX_RECENT_PATH_REQUESTS: usize> Debug for FixedRecentPathRequestTable<MAX_RECENT_PATH_REQUESTS>
impl<const MAX_RECENT_PATH_REQUESTS: usize> Debug for FixedRecentPathRequestTable<MAX_RECENT_PATH_REQUESTS>
Source§impl<const MAX_RECENT_PATH_REQUESTS: usize> Default for FixedRecentPathRequestTable<MAX_RECENT_PATH_REQUESTS>
impl<const MAX_RECENT_PATH_REQUESTS: usize> Default for FixedRecentPathRequestTable<MAX_RECENT_PATH_REQUESTS>
Source§fn default() -> FixedRecentPathRequestTable<MAX_RECENT_PATH_REQUESTS>
fn default() -> FixedRecentPathRequestTable<MAX_RECENT_PATH_REQUESTS>
Returns the “default value” for a type. Read more
Source§impl<const MAX_RECENT_PATH_REQUESTS: usize> RecentPathRequestTable for FixedRecentPathRequestTable<MAX_RECENT_PATH_REQUESTS>
impl<const MAX_RECENT_PATH_REQUESTS: usize> RecentPathRequestTable for FixedRecentPathRequestTable<MAX_RECENT_PATH_REQUESTS>
fn capacity(&self) -> usize
fn len(&self) -> usize
fn destinations(&self) -> &[DestinationHash]
fn requested_ats(&self) -> &[InstantMillis]
fn push(&mut self, destination: DestinationHash, requested_at: InstantMillis)
fn swap_remove(&mut self, index: usize)
fn is_empty(&self) -> bool
fn index_of(&self, destination: &DestinationHash) -> Option<usize>
fn first_stale(&mut self, now: InstantMillis) -> Option<usize>
fn prefers_linear_stale_cull(&mut self, _now: InstantMillis) -> bool
fn invalidate_stale_index(&mut self)
Auto Trait Implementations§
impl<const MAX_RECENT_PATH_REQUESTS: usize> Freeze for FixedRecentPathRequestTable<MAX_RECENT_PATH_REQUESTS>
impl<const MAX_RECENT_PATH_REQUESTS: usize> RefUnwindSafe for FixedRecentPathRequestTable<MAX_RECENT_PATH_REQUESTS>
impl<const MAX_RECENT_PATH_REQUESTS: usize> Send for FixedRecentPathRequestTable<MAX_RECENT_PATH_REQUESTS>
impl<const MAX_RECENT_PATH_REQUESTS: usize> Sync for FixedRecentPathRequestTable<MAX_RECENT_PATH_REQUESTS>
impl<const MAX_RECENT_PATH_REQUESTS: usize> Unpin for FixedRecentPathRequestTable<MAX_RECENT_PATH_REQUESTS>
impl<const MAX_RECENT_PATH_REQUESTS: usize> UnsafeUnpin for FixedRecentPathRequestTable<MAX_RECENT_PATH_REQUESTS>
impl<const MAX_RECENT_PATH_REQUESTS: usize> UnwindSafe for FixedRecentPathRequestTable<MAX_RECENT_PATH_REQUESTS>
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