pub struct DestinationState {
pub device: String,
pub destination: String,
pub addresses: Vec<String>,
pub rx_rate_bps: Option<u64>,
pub tx_rate_bps: Option<u64>,
pub rx_max_rate_bps: Option<u64>,
pub tx_max_rate_bps: Option<u64>,
pub latency_us: Option<u64>,
pub resources_pct: Option<f64>,
pub rx_quality_pct: Option<f64>,
pub tx_quality_pct: Option<f64>,
}Expand description
state/modem/device/{device}/destination/{destination} — one neighbour a
netdev’s radio reports it can reach (#137): a DLEP destination, with the
radio’s metrics for the link toward it.
Not an endpoint (architecture §4.6): an endpoint is a remote an
operator configured lanes toward; this is what a radio discovered, and it
comes and goes on its own, which is why the document is deleted when the
radio reports it gone. A document field carries its unit in its name,
because unlike a telemetry subject it has no registry unit to carry it.
Fields§
§device: StringThe local device whose radio reports it.
destination: StringHow the radio names it, as the key chunk spells it: for DLEP its MAC, lowercase hex separated by hyphens. An addressing identifier, never a proof of identity (invariant I5).
addresses: Vec<String>The addresses the radio says it has.
rx_rate_bps: Option<u64>§tx_rate_bps: Option<u64>§rx_max_rate_bps: Option<u64>§tx_max_rate_bps: Option<u64>§latency_us: Option<u64>§resources_pct: Option<f64>Percent.
rx_quality_pct: Option<f64>Percent.
tx_quality_pct: Option<f64>Percent.
Implementations§
Source§impl DestinationState
impl DestinationState
Sourcepub fn of(device: &str, d: &Destination) -> DestinationState
pub fn of(device: &str, d: &Destination) -> DestinationState
The document for one destination the device reported.
Trait Implementations§
Source§impl Clone for DestinationState
impl Clone for DestinationState
Source§fn clone(&self) -> DestinationState
fn clone(&self) -> DestinationState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DestinationState
impl Debug for DestinationState
Source§impl<'de> Deserialize<'de> for DestinationState
impl<'de> Deserialize<'de> for DestinationState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DestinationState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DestinationState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for DestinationState
impl JsonSchema for DestinationState
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for DestinationState
impl PartialEq for DestinationState
Source§impl Serialize for DestinationState
impl Serialize for DestinationState
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for DestinationState
Auto Trait Implementations§
impl Freeze for DestinationState
impl RefUnwindSafe for DestinationState
impl Send for DestinationState
impl Sync for DestinationState
impl Unpin for DestinationState
impl UnsafeUnpin for DestinationState
impl UnwindSafe for DestinationState
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more