pub struct TelemetryQueueLimits { /* private fields */ }Expand description
Count and byte limits for an exporter outage queue.
Implementations§
Source§impl TelemetryQueueLimits
impl TelemetryQueueLimits
Sourcepub fn new(
max_items: usize,
max_bytes: usize,
max_record_bytes: usize,
) -> Result<Self, TelemetryQueueConfigError>
pub fn new( max_items: usize, max_bytes: usize, max_record_bytes: usize, ) -> Result<Self, TelemetryQueueConfigError>
Creates validated non-zero queue limits.
§Errors
Returns TelemetryQueueConfigError when a limit is zero or one record could exceed the
entire byte budget.
Sourcepub const fn max_record_bytes(self) -> usize
pub const fn max_record_bytes(self) -> usize
Returns the maximum estimated size of one record.
Trait Implementations§
Source§impl Clone for TelemetryQueueLimits
impl Clone for TelemetryQueueLimits
impl Copy for TelemetryQueueLimits
Source§impl Debug for TelemetryQueueLimits
impl Debug for TelemetryQueueLimits
Source§impl Default for TelemetryQueueLimits
impl Default for TelemetryQueueLimits
impl Eq for TelemetryQueueLimits
Source§impl PartialEq for TelemetryQueueLimits
impl PartialEq for TelemetryQueueLimits
impl StructuralPartialEq for TelemetryQueueLimits
Auto Trait Implementations§
impl Freeze for TelemetryQueueLimits
impl RefUnwindSafe for TelemetryQueueLimits
impl Send for TelemetryQueueLimits
impl Sync for TelemetryQueueLimits
impl Unpin for TelemetryQueueLimits
impl UnsafeUnpin for TelemetryQueueLimits
impl UnwindSafe for TelemetryQueueLimits
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