pub struct RecursivePathRequests<C>where
C: RecursivePathRequestTable,{ /* private fields */ }Expand description
RNS 1.4.2 Transport.discovery_path_requests.
Implementations§
Source§impl<C> RecursivePathRequests<C>where
C: RecursivePathRequestTable,
impl<C> RecursivePathRequests<C>where
C: RecursivePathRequestTable,
pub fn begin( &mut self, destination: DestinationHash, requesting_interface: InterfaceId, expires_at: InstantMillis, ) -> RecursiveOutcome
pub fn take_requester( &mut self, destination: &DestinationHash, ) -> Option<InterfaceId>
Sourcepub fn contains(&self, destination: &DestinationHash) -> bool
pub fn contains(&self, destination: &DestinationHash) -> bool
Whether a recursive path request is in flight for destination; like a pending request, it exempts the destination from ingress limiting.
pub fn cull_expired(&mut self, now: InstantMillis)
pub fn earliest_expiry_at(&self) -> Option<InstantMillis>
Trait Implementations§
Source§impl<C> Debug for RecursivePathRequests<C>where
C: Debug + RecursivePathRequestTable,
impl<C> Debug for RecursivePathRequests<C>where
C: Debug + RecursivePathRequestTable,
Source§impl<C> Default for RecursivePathRequests<C>where
C: Default + RecursivePathRequestTable,
impl<C> Default for RecursivePathRequests<C>where
C: Default + RecursivePathRequestTable,
Source§fn default() -> RecursivePathRequests<C>
fn default() -> RecursivePathRequests<C>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<C> Freeze for RecursivePathRequests<C>where
C: Freeze,
impl<C> RefUnwindSafe for RecursivePathRequests<C>where
C: RefUnwindSafe,
impl<C> Send for RecursivePathRequests<C>where
C: Send,
impl<C> Sync for RecursivePathRequests<C>where
C: Sync,
impl<C> Unpin for RecursivePathRequests<C>where
C: Unpin,
impl<C> UnsafeUnpin for RecursivePathRequests<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for RecursivePathRequests<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