pub struct RelayPromotedData {
pub connection_count: Option<i16>,
pub battery_level: Option<i16>,
}Expand description
protocol.relay.promoted — { connection_count, battery_level }.
Emitted from the RelayActivity::Began arm of evaluate_relay_role
(SDK PR #110, shipped in 0.11.0 — the release that introduced telemetry,
so no SDK the client supports lacks it).
Fields§
§connection_count: Option<i16>§battery_level: Option<i16>Trait Implementations§
Source§impl Clone for RelayPromotedData
impl Clone for RelayPromotedData
Source§impl Debug for RelayPromotedData
impl Debug for RelayPromotedData
Source§impl Default for RelayPromotedData
impl Default for RelayPromotedData
Source§impl<'de> Deserialize<'de> for RelayPromotedData
impl<'de> Deserialize<'de> for RelayPromotedData
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 RelayPromotedData
impl RefUnwindSafe for RelayPromotedData
impl Send for RelayPromotedData
impl Sync for RelayPromotedData
impl Unpin for RelayPromotedData
impl UnsafeUnpin for RelayPromotedData
impl UnwindSafe for RelayPromotedData
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