pub struct RosterEntry {
pub device_id: String,
pub added_at: Hlc,
pub last_seen_ms: u64,
pub acked: Option<Hlc>,
pub status: DeviceStatus,
}Expand description
One device registry entry — roster()’s row.
Fields§
§device_id: String§added_at: HlcThe stamp the device joined at (relay wall reading, counter 0).
last_seen_ms: u64Relay wall-clock ms of the device’s last push/pull/ack/register.
acked: Option<Hlc>The device’s acked fold frontier (monotone-only), None until it
first acks — which holds the stable frontier at None (safe).
status: DeviceStatusTrait Implementations§
Source§impl Clone for RosterEntry
impl Clone for RosterEntry
Source§fn clone(&self) -> RosterEntry
fn clone(&self) -> RosterEntry
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 RosterEntry
impl Debug for RosterEntry
Source§impl<'de> Deserialize<'de> for RosterEntry
impl<'de> Deserialize<'de> for RosterEntry
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
impl Eq for RosterEntry
Source§impl PartialEq for RosterEntry
impl PartialEq for RosterEntry
Source§impl Serialize for RosterEntry
impl Serialize for RosterEntry
impl StructuralPartialEq for RosterEntry
Auto Trait Implementations§
impl Freeze for RosterEntry
impl RefUnwindSafe for RosterEntry
impl Send for RosterEntry
impl Sync for RosterEntry
impl Unpin for RosterEntry
impl UnsafeUnpin for RosterEntry
impl UnwindSafe for RosterEntry
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