pub struct RelayConfig {
pub cad_periodicity: CadPeriodicity,
pub default_channel: RelayChannel,
pub second_channel: Option<RelayChannel>,
}Expand description
Which channels a relay scans and how often, as RelayConfReq sets them, TS011-1.0.1
section 10.1.
Fields§
§cad_periodicity: CadPeriodicityHow often the relay scans each channel.
default_channel: RelayChannelThe default channel, one of the region’s.
second_channel: Option<RelayChannel>A second channel, scanned half a period after the default one.
Implementations§
Source§impl RelayConfig
impl RelayConfig
Sourcepub const fn new(
cad_periodicity: CadPeriodicity,
default_channel: RelayChannel,
) -> RelayConfig
pub const fn new( cad_periodicity: CadPeriodicity, default_channel: RelayChannel, ) -> RelayConfig
Sourcepub fn region_default(plan: &ChannelPlan<'_>) -> Option<RelayConfig>
pub fn region_default(plan: &ChannelPlan<'_>) -> Option<RelayConfig>
Sourcepub const fn with_second_channel(self, channel: RelayChannel) -> RelayConfig
pub const fn with_second_channel(self, channel: RelayChannel) -> RelayConfig
Trait Implementations§
Source§impl Clone for RelayConfig
impl Clone for RelayConfig
Source§fn clone(&self) -> RelayConfig
fn clone(&self) -> RelayConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RelayConfig
Source§impl Debug for RelayConfig
impl Debug for RelayConfig
impl Eq for RelayConfig
Source§impl Hash for RelayConfig
impl Hash for RelayConfig
Source§impl PartialEq for RelayConfig
impl PartialEq for RelayConfig
impl StructuralPartialEq for RelayConfig
Auto Trait Implementations§
impl Freeze for RelayConfig
impl RefUnwindSafe for RelayConfig
impl Send for RelayConfig
impl Sync for RelayConfig
impl Unpin for RelayConfig
impl UnsafeUnpin for RelayConfig
impl UnwindSafe for RelayConfig
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