pub struct LinkQualitySnapshot {
pub per_face: SmallVec<[FaceLinkQuality; 4]>,
}Expand description
Per-face link quality snapshot inserted into StrategyContext::extensions.
Access from a strategy: ctx.extensions.get::<LinkQualitySnapshot>().
Populated by a ContextEnricher in ndn-engine that reads from
RadioTable, FlowTable, or other data sources.
Fields§
§per_face: SmallVec<[FaceLinkQuality; 4]>Link quality entries, one per known face.
Implementations§
Source§impl LinkQualitySnapshot
impl LinkQualitySnapshot
Sourcepub fn for_face(&self, face_id: FaceId) -> Option<&FaceLinkQuality>
pub fn for_face(&self, face_id: FaceId) -> Option<&FaceLinkQuality>
Look up link quality for a specific face.
Trait Implementations§
Source§impl Clone for LinkQualitySnapshot
impl Clone for LinkQualitySnapshot
Source§fn clone(&self) -> LinkQualitySnapshot
fn clone(&self) -> LinkQualitySnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LinkQualitySnapshot
impl RefUnwindSafe for LinkQualitySnapshot
impl Send for LinkQualitySnapshot
impl Sync for LinkQualitySnapshot
impl Unpin for LinkQualitySnapshot
impl UnwindSafe for LinkQualitySnapshot
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