pub struct CanisterLogRenderLimits { /* private fields */ }Expand description
Explicit bounds applied when canister logs are converted to diagnostic text.
Implementations§
Source§impl CanisterLogRenderLimits
impl CanisterLogRenderLimits
Sourcepub const fn new(record_limit: usize, byte_limit: usize) -> Self
pub const fn new(record_limit: usize, byte_limit: usize) -> Self
Set exact record and aggregate raw-content byte limits.
Zero is valid for either limit and retains no content in that dimension.
Sourcepub const fn record_limit(self) -> usize
pub const fn record_limit(self) -> usize
Maximum number of retained records.
Sourcepub const fn byte_limit(self) -> usize
pub const fn byte_limit(self) -> usize
Maximum aggregate number of retained raw content bytes.
Trait Implementations§
Source§impl Clone for CanisterLogRenderLimits
impl Clone for CanisterLogRenderLimits
Source§fn clone(&self) -> CanisterLogRenderLimits
fn clone(&self) -> CanisterLogRenderLimits
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 moreimpl Copy for CanisterLogRenderLimits
Source§impl Debug for CanisterLogRenderLimits
impl Debug for CanisterLogRenderLimits
Source§impl Default for CanisterLogRenderLimits
impl Default for CanisterLogRenderLimits
impl Eq for CanisterLogRenderLimits
Source§impl PartialEq for CanisterLogRenderLimits
impl PartialEq for CanisterLogRenderLimits
impl StructuralPartialEq for CanisterLogRenderLimits
Auto Trait Implementations§
impl Freeze for CanisterLogRenderLimits
impl RefUnwindSafe for CanisterLogRenderLimits
impl Send for CanisterLogRenderLimits
impl Sync for CanisterLogRenderLimits
impl Unpin for CanisterLogRenderLimits
impl UnsafeUnpin for CanisterLogRenderLimits
impl UnwindSafe for CanisterLogRenderLimits
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.