pub struct RouteHold {
pub until_ms: u64,
pub flood_hops: u8,
pub fallback_acks: u8,
pub candidate: Option<RouteCandidate>,
}Expand description
A route the application chose for a peer, kept in place until a deadline.
While the hold is in force no learned path replaces the route and no failure retires it. A send that misses its acknowledgment still falls back to a flood, and what that teaches is kept beside the route as a candidate the application may adopt.
Fields§
§until_ms: u64When the hold ends, on the MAC’s clock.
flood_hops: u8Flood budget past the end of the held route: what a send on it
spends once its hints are consumed, or from the start for a direct
route. Replaces the slack crate::established_route_slack would
grant while the hold lasts; zero floods nothing. An ack along the
route spends whichever of the two is larger.
fallback_acks: u8Consecutive sends on the held route that missed their acknowledgment and were then acknowledged through the flood fallback.
candidate: Option<RouteCandidate>The best path learned while the hold was in force.
Trait Implementations§
impl Eq for RouteHold
impl StructuralPartialEq for RouteHold
Auto Trait Implementations§
impl Freeze for RouteHold
impl RefUnwindSafe for RouteHold
impl Send for RouteHold
impl Sync for RouteHold
impl Unpin for RouteHold
impl UnwindSafe for RouteHold
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)