pub struct CanisterDiagnosticLogs { /* private fields */ }Expand description
Successfully fetched canister logs after bounded text conversion.
Implementations§
Source§impl CanisterDiagnosticLogs
impl CanisterDiagnosticLogs
Sourcepub fn records(&self) -> &[CanisterDiagnosticLogRecord]
pub fn records(&self) -> &[CanisterDiagnosticLogRecord]
Retained records in upstream order.
Sourcepub const fn total_records(&self) -> usize
pub const fn total_records(&self) -> usize
Total number of records returned by PocketIC before bounding.
Sourcepub const fn total_content_bytes(&self) -> usize
pub const fn total_content_bytes(&self) -> usize
Total raw content bytes returned by PocketIC before bounding.
Sourcepub const fn omitted_records(&self) -> usize
pub const fn omitted_records(&self) -> usize
Number of whole records omitted by the configured bounds.
Sourcepub const fn omitted_content_bytes(&self) -> usize
pub const fn omitted_content_bytes(&self) -> usize
Aggregate raw content bytes omitted across retained and omitted records.
Sourcepub const fn was_truncated(&self) -> bool
pub const fn was_truncated(&self) -> bool
Whether either whole records or record content were truncated.
Trait Implementations§
Source§impl Clone for CanisterDiagnosticLogs
impl Clone for CanisterDiagnosticLogs
Source§fn clone(&self) -> CanisterDiagnosticLogs
fn clone(&self) -> CanisterDiagnosticLogs
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 CanisterDiagnosticLogs
impl Debug for CanisterDiagnosticLogs
Source§impl Display for CanisterDiagnosticLogs
impl Display for CanisterDiagnosticLogs
impl Eq for CanisterDiagnosticLogs
Source§impl PartialEq for CanisterDiagnosticLogs
impl PartialEq for CanisterDiagnosticLogs
impl StructuralPartialEq for CanisterDiagnosticLogs
Auto Trait Implementations§
impl Freeze for CanisterDiagnosticLogs
impl RefUnwindSafe for CanisterDiagnosticLogs
impl Send for CanisterDiagnosticLogs
impl Sync for CanisterDiagnosticLogs
impl Unpin for CanisterDiagnosticLogs
impl UnsafeUnpin for CanisterDiagnosticLogs
impl UnwindSafe for CanisterDiagnosticLogs
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<T> CustomError for T
impl<T> CustomError for T
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.