pub struct RepeaterPolicy {
pub enabled: bool,
pub regions: Vec<String>,
pub default_region: Option<RegionCode>,
pub min_rssi: Option<i16>,
pub min_snr: Option<i8>,
}Expand description
The repeater forwarding policy of a CAP_REPEATER device.
The four gates are independent and are written separately, so this is a report rather than a transaction: reading it back after a partial write shows exactly what the device holds.
Fields§
§enabled: boolPROP_MAC_REPEATER_ENABLED: whether the on-board node forwards at
all. The remaining fields are inert while this is false.
regions: Vec<String>PROP_MAC_REPEATER_REGIONS: which region-tagged floods to forward,
as the strings an operator wrote — a short code, a name, or a
literal 0x1234. Empty imposes no regional restriction. The
device derives the 2-octet codes the filter actually compares;
pass a name through [RegionCode::from_str] to see them.
default_region: Option<RegionCode>PROP_MAC_REPEATER_DEFAULT_REGION: the tag inserted into an
untagged flood before forwarding it. None forwards untagged.
min_rssi: Option<i16>PROP_MAC_REPEATER_MIN_RSSI in dBm: floor below which a frame is
not worth relaying. None accepts any.
min_snr: Option<i8>PROP_MAC_REPEATER_MIN_SNR in dB. None accepts any.
Trait Implementations§
Source§impl Clone for RepeaterPolicy
impl Clone for RepeaterPolicy
Source§fn clone(&self) -> RepeaterPolicy
fn clone(&self) -> RepeaterPolicy
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RepeaterPolicy
impl Debug for RepeaterPolicy
Source§impl Default for RepeaterPolicy
impl Default for RepeaterPolicy
Source§fn default() -> RepeaterPolicy
fn default() -> RepeaterPolicy
Source§impl PartialEq for RepeaterPolicy
impl PartialEq for RepeaterPolicy
impl Eq for RepeaterPolicy
impl StructuralPartialEq for RepeaterPolicy
Auto Trait Implementations§
impl Freeze for RepeaterPolicy
impl RefUnwindSafe for RepeaterPolicy
impl Send for RepeaterPolicy
impl Sync for RepeaterPolicy
impl Unpin for RepeaterPolicy
impl UnwindSafe for RepeaterPolicy
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)