pub struct CanisterDiagnosticLogRecord { /* private fields */ }Expand description
One canister-log record retained as bounded lossy UTF-8 text.
Implementations§
Source§impl CanisterDiagnosticLogRecord
impl CanisterDiagnosticLogRecord
Sourcepub const fn timestamp_nanos(&self) -> u64
pub const fn timestamp_nanos(&self) -> u64
Upstream record timestamp in nanoseconds.
Sourcepub const fn original_content_bytes(&self) -> usize
pub const fn original_content_bytes(&self) -> usize
Original raw content length before bounding and conversion.
Sourcepub const fn omitted_content_bytes(&self) -> usize
pub const fn omitted_content_bytes(&self) -> usize
Raw content bytes omitted from this retained record.
Sourcepub const fn was_truncated(&self) -> bool
pub const fn was_truncated(&self) -> bool
Whether this record’s content was truncated.
Trait Implementations§
Source§impl Clone for CanisterDiagnosticLogRecord
impl Clone for CanisterDiagnosticLogRecord
Source§fn clone(&self) -> CanisterDiagnosticLogRecord
fn clone(&self) -> CanisterDiagnosticLogRecord
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 CanisterDiagnosticLogRecord
impl Debug for CanisterDiagnosticLogRecord
impl Eq for CanisterDiagnosticLogRecord
impl StructuralPartialEq for CanisterDiagnosticLogRecord
Auto Trait Implementations§
impl Freeze for CanisterDiagnosticLogRecord
impl RefUnwindSafe for CanisterDiagnosticLogRecord
impl Send for CanisterDiagnosticLogRecord
impl Sync for CanisterDiagnosticLogRecord
impl Unpin for CanisterDiagnosticLogRecord
impl UnsafeUnpin for CanisterDiagnosticLogRecord
impl UnwindSafe for CanisterDiagnosticLogRecord
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
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
Compare self to
key and return true if they are equal.