pub enum RelayActivation {
Disabled,
Enabled,
Dynamic,
DeviceControlled,
}Expand description
How an end device manages its relay mode, TS011-1.0.1 table 40.
Variants§
Disabled
Never send through a relay.
Enabled
Always send through a relay, whether or not one answers.
Dynamic
Start sending through a relay after enough uplinks go unanswered, with
smart_enable_uplinks of them.
DeviceControlled
Leave it to the device, which is where every device starts and returns to when it joins again.
Implementations§
Source§impl RelayActivation
impl RelayActivation
Sourcepub const fn from_code(code: u8) -> RelayActivation
pub const fn from_code(code: u8) -> RelayActivation
Trait Implementations§
Source§impl Clone for RelayActivation
impl Clone for RelayActivation
Source§fn clone(&self) -> RelayActivation
fn clone(&self) -> RelayActivation
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 RelayActivation
Source§impl Debug for RelayActivation
impl Debug for RelayActivation
impl Eq for RelayActivation
Source§impl Hash for RelayActivation
impl Hash for RelayActivation
Source§impl PartialEq for RelayActivation
impl PartialEq for RelayActivation
impl StructuralPartialEq for RelayActivation
Auto Trait Implementations§
impl Freeze for RelayActivation
impl RefUnwindSafe for RelayActivation
impl Send for RelayActivation
impl Sync for RelayActivation
impl Unpin for RelayActivation
impl UnsafeUnpin for RelayActivation
impl UnwindSafe for RelayActivation
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