pub struct RelayDemotedData {
pub reason_class: Option<String>,
pub reason: Option<String>,
}Expand description
protocol.relay.demoted — { reason_class }. Emitted from
evaluate_relay_role (SDK ≥ 0.11.0): the configuration gate and the
RelayActivity::Ceased arm. Those two literals are the whole vocabulary —
the anticipated battery_low/role_lost/shutdown were never written
(plan Appendix B).
Fields§
§reason_class: Option<String>§reason: Option<String>The SDK’s demotion literal, verbatim; see ReasonRetryData::reason.
Trait Implementations§
Source§impl Clone for RelayDemotedData
impl Clone for RelayDemotedData
Source§fn clone(&self) -> RelayDemotedData
fn clone(&self) -> RelayDemotedData
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 moreSource§impl Debug for RelayDemotedData
impl Debug for RelayDemotedData
Source§impl Default for RelayDemotedData
impl Default for RelayDemotedData
Source§fn default() -> RelayDemotedData
fn default() -> RelayDemotedData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RelayDemotedData
impl<'de> Deserialize<'de> for RelayDemotedData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RelayDemotedData
impl RefUnwindSafe for RelayDemotedData
impl Send for RelayDemotedData
impl Sync for RelayDemotedData
impl Unpin for RelayDemotedData
impl UnsafeUnpin for RelayDemotedData
impl UnwindSafe for RelayDemotedData
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