pub struct RssiFilter {
pub min_rssi_dbm: i8,
}Expand description
Removes faces with RSSI below a configurable threshold from Forward actions.
If all faces in a Forward are filtered out, the action is dropped entirely
so the strategy falls through to the next action (typically Nack or Suppress).
When no LinkQualitySnapshot is present in the extensions (e.g. on wired-only
routers), the filter is a no-op — all actions pass through unchanged.
Fields§
§min_rssi_dbm: i8Minimum RSSI in dBm. Faces below this threshold are removed.
Implementations§
Trait Implementations§
Source§impl StrategyFilter for RssiFilter
impl StrategyFilter for RssiFilter
Source§fn filter(
&self,
ctx: &StrategyContext<'_>,
actions: SmallVec<[ForwardingAction; 2]>,
) -> SmallVec<[ForwardingAction; 2]>
fn filter( &self, ctx: &StrategyContext<'_>, actions: SmallVec<[ForwardingAction; 2]>, ) -> SmallVec<[ForwardingAction; 2]>
Transform or prune forwarding actions produced by the inner strategy.
Auto Trait Implementations§
impl Freeze for RssiFilter
impl RefUnwindSafe for RssiFilter
impl Send for RssiFilter
impl Sync for RssiFilter
impl Unpin for RssiFilter
impl UnwindSafe for RssiFilter
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