pub struct RepeaterPolicy {
pub enabled: bool,
pub regions: Vec<RegionCode>,
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<RegionCode>PROP_MAC_REPEATER_REGIONS: which region-tagged floods to forward.
Empty imposes no regional restriction.
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
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
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
Mutably borrows from an owned value. Read more
§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)
🔬This is a nightly-only experimental API. (
clone_to_uninit)