pub struct Entry {Show 16 fields
pub id: u64,
pub run: String,
pub at: String,
pub device: u32,
pub object_type: u32,
pub instance: u32,
pub property: u32,
pub index: Option<u32>,
pub priority: Option<u8>,
pub commandable: bool,
pub before: Option<Stored>,
pub written: Stored,
pub state: State,
pub kept: bool,
pub seq: u64,
pub origin: Origin,
}Expand description
One change in effect.
Fields§
§id: u64Unique within the file.
run: StringThe process run that made it.
at: StringWhen it was first written, UTC.
device: u32Device instance.
object_type: u32Object type, raw.
instance: u32Object instance.
property: u32Property, raw.
index: Option<u32>Array index.
priority: Option<u8>The priority slot, for a commandable write.
commandable: boolWritten to a priority slot.
before: Option<Stored>What undoes it: the slot’s old value (None: it was NULL) or the
property’s old value (None: unknown, so it can’t be undone).
written: StoredWhat was written last.
state: StateWhere it stands.
kept: boolAn earlier session chose to keep it on exit.
seq: u64Order of the latest write to it across the ledger: revert goes from the highest down.
origin: OriginThe front end and principal of its latest write.
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn object(&self) -> Option<ObjectIdentifier>
pub fn object(&self) -> Option<ObjectIdentifier>
The object.
Sourcepub fn property(&self) -> PropertyIdentifier
pub fn property(&self) -> PropertyIdentifier
The property.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
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 Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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
Mutably borrows from an owned value. Read more