pub struct EventRecord {
pub seq: u64,
pub at: Millis,
pub device_id: DeviceId,
pub kind: EventKind,
}Expand description
One entry in a device’s event log.
seq is unique and increasing across all devices in a registry, so clients can poll with
since=<last seq>. at never goes backwards.
Fields§
§seq: u64Sequence number.
at: MillisMonotonic timestamp.
device_id: DeviceIdThe device.
kind: EventKindWhat happened.
Implementations§
Trait Implementations§
Source§impl Clone for EventRecord
impl Clone for EventRecord
Source§impl Debug for EventRecord
impl Debug for EventRecord
Source§impl<'de> Deserialize<'de> for EventRecord
impl<'de> Deserialize<'de> for EventRecord
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
Source§impl PartialEq for EventRecord
impl PartialEq for EventRecord
Source§impl Serialize for EventRecord
impl Serialize for EventRecord
impl StructuralPartialEq for EventRecord
Auto Trait Implementations§
impl !Freeze for EventRecord
impl RefUnwindSafe for EventRecord
impl Send for EventRecord
impl Sync for EventRecord
impl Unpin for EventRecord
impl UnsafeUnpin for EventRecord
impl UnwindSafe for EventRecord
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