pub struct LogRecordIdentity { /* private fields */ }Expand description
Stable object-owned identity for one resident log record.
Identity views returned by crate::traits::BACnetObject::log_record_identities_internal
are ordered oldest-to-newest and align element-for-element with the owning
object’s resident records and LOG_BUFFER projection. Sequence numbers are
always nonzero. Event and Trend logs count in Unsigned32 and wrap from
u32::MAX to 1; Audit Log counts in Unsigned64 and wraps from u64::MAX.
Implementations§
Source§impl LogRecordIdentity
impl LogRecordIdentity
Sourcepub fn new(sequence_number: u64, date: Date, time: Time) -> Option<Self>
pub fn new(sequence_number: u64, date: Date, time: Time) -> Option<Self>
Construct an identity, rejecting zero as an invalid record sequence.
Sourcepub fn sequence_number(&self) -> u64
pub fn sequence_number(&self) -> u64
Return this record’s nonzero sequence number.
Sourcepub fn timestamp_key(&self) -> Option<TimestampKey>
pub fn timestamp_key(&self) -> Option<TimestampKey>
This record’s timestamp as ReadRange By-Time compares it, or None
when it is not an actual moment.
Trait Implementations§
Source§impl Clone for LogRecordIdentity
impl Clone for LogRecordIdentity
impl Copy for LogRecordIdentity
Source§impl Debug for LogRecordIdentity
impl Debug for LogRecordIdentity
impl Eq for LogRecordIdentity
Source§impl PartialEq for LogRecordIdentity
impl PartialEq for LogRecordIdentity
impl StructuralPartialEq for LogRecordIdentity
Auto Trait Implementations§
impl Freeze for LogRecordIdentity
impl RefUnwindSafe for LogRecordIdentity
impl Send for LogRecordIdentity
impl Sync for LogRecordIdentity
impl Unpin for LogRecordIdentity
impl UnsafeUnpin for LogRecordIdentity
impl UnwindSafe for LogRecordIdentity
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