pub struct Device {
pub id: String,
pub name: String,
pub kind: DeviceKind,
pub liminal: Option<String>,
pub started: Option<u64>,
pub started_fault: Option<String>,
pub parent: Option<String>,
pub zone: Option<DeviceBox>,
}Expand description
A device: this one, a cluster peer, or a federated peer.
Fields§
§id: StringThe device id (the cluster node name, or local without a cluster).
name: StringThe device’s name as shown.
kind: DeviceKindAlways a device: federation has no source.
liminal: Option<String>The liminal version running there: known for this device (from the build), not for a peer, whose version nothing here holds.
started: Option<u64>When the server’s incarnation started, in wall-clock milliseconds
since the epoch: known for this device, not for a peer. A reader takes
the uptime as its own now less this, so the figure never goes stale
between documents (Hermes 7 Oct 01:49, which replaced uptime).
started_fault: Option<String>Why this device’s start is missing, in the server’s words: the clock
fault met building the document (Buttercup’s finding 3, Hermes 03:05).
Present only when started is absent on this device, so never both.
parent: Option<String>The device this one is a district of, when configured.
zone: Option<DeviceBox>Where the map draws the device’s zone (box in types.ts), when this
server places it.
Trait Implementations§
impl Eq for Device
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
Blanket Implementations§
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.