pub struct HeapSeenPathRequestTable { /* private fields */ }Implementations§
Source§impl HeapSeenPathRequestTable
impl HeapSeenPathRequestTable
Sourcepub const RNS_MAX_PR_TAGS: usize = 32_000
pub const RNS_MAX_PR_TAGS: usize = 32_000
RNS 1.4.2 Transport.max_pr_tags: the reference’s own bound on remembered path-request tags, dropped oldest-first past it.
Trait Implementations§
Source§impl Debug for HeapSeenPathRequestTable
impl Debug for HeapSeenPathRequestTable
Source§impl Default for HeapSeenPathRequestTable
impl Default for HeapSeenPathRequestTable
Source§fn default() -> HeapSeenPathRequestTable
fn default() -> HeapSeenPathRequestTable
Returns the “default value” for a type. Read more
Source§impl SeenPathRequestTable for HeapSeenPathRequestTable
impl SeenPathRequestTable for HeapSeenPathRequestTable
fn capacity(&self) -> usize
fn len(&self) -> usize
fn destinations(&self) -> &[DestinationHash]
fn ids(&self) -> &[[u8; 16]]
Source§fn remember(&mut self, destination: DestinationHash, id: [u8; 16])
fn remember(&mut self, destination: DestinationHash, id: [u8; 16])
Record one
(destination, id), evicting the oldest when full (FIFO).fn is_empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for HeapSeenPathRequestTable
impl RefUnwindSafe for HeapSeenPathRequestTable
impl Send for HeapSeenPathRequestTable
impl Sync for HeapSeenPathRequestTable
impl Unpin for HeapSeenPathRequestTable
impl UnsafeUnpin for HeapSeenPathRequestTable
impl UnwindSafe for HeapSeenPathRequestTable
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