Skip to main content

Links

Struct Links 

Source
pub struct Links<C>
where C: LinkTable,
{ /* private fields */ }

Implementations§

Source§

impl<C> Links<C>
where C: LinkTable,

Source

pub fn track_initiated( &mut self, link: InitiatedLink, ) -> Result<(), TrackLinkError>

Source

pub fn track_responding( &mut self, link: RespondingLink, ) -> Result<(), TrackLinkError>

Source

pub fn phase_for(&self, link_id: &LinkId) -> Option<&LinkPhase>

Source

pub fn activate_initiated( &mut self, link_id: &LinkId, key: LinkKey, activation: &LinkActivation, now: InstantMillis, ) -> Result<(), LinkActivationError>

Source

pub fn activate_responding( &mut self, link_id: &LinkId, rtt: RttMillis, attached_interface: InterfaceId, now: InstantMillis, ) -> Result<DestinationHash, LinkActivationError>

Source

pub fn set_resource_strategy( &mut self, link_id: &LinkId, strategy: ResourceStrategy, ) -> Result<(), LinkActivationError>

RNS 1.4.2 Link.set_resource_strategy: how this link answers inbound resource advertisements from now on.

Source

pub fn note_resource_concluded( &mut self, link_id: &LinkId, window: usize, eifr: u64, )

RNS 1.4.2 Link.resource_concluded’s memory. The window and expected in-flight rate an incoming transfer ended with, inherited by the next transfer this link accepts.

Source

pub fn note_identified(&mut self, link_id: &LinkId, identity: IdentityHash)

Source

pub fn note_inbound(&mut self, link_id: &LinkId, now: InstantMillis)

Source

pub fn note_outbound(&mut self, link_id: &LinkId, now: InstantMillis)

Source

pub fn note_keepalive_sent(&mut self, link_id: &LinkId, now: InstantMillis)

Source

pub fn keepalive_echo_due(&self, link_id: &LinkId, now: InstantMillis) -> bool

Source

pub fn remove(&mut self, link_id: &LinkId) -> bool

Source

pub fn pop_stale(&mut self, now: InstantMillis) -> Option<LinkId>

Source

pub fn pop_due_keepalive(&mut self, now: InstantMillis) -> Option<DueKeepalive>

Source

pub fn pop_overdue(&mut self, now: InstantMillis) -> Option<OverdueLink>

Source

pub fn earliest_timeout_at(&self) -> Option<InstantMillis>

Source

pub fn len(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Trait Implementations§

Source§

impl<C> Debug for Links<C>
where C: Debug + LinkTable,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<C> Default for Links<C>
where C: Default + LinkTable,

Source§

fn default() -> Links<C>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<C> Freeze for Links<C>
where C: Freeze,

§

impl<C> RefUnwindSafe for Links<C>
where C: RefUnwindSafe,

§

impl<C> Send for Links<C>
where C: Send,

§

impl<C> Sync for Links<C>
where C: Sync,

§

impl<C> Unpin for Links<C>
where C: Unpin,

§

impl<C> UnsafeUnpin for Links<C>
where C: UnsafeUnpin,

§

impl<C> UnwindSafe for Links<C>
where C: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.