pub struct TelemetryQueue { /* private fields */ }Expand description
Cloneable producer for one bounded exporter queue.
Implementations§
Source§impl TelemetryQueue
impl TelemetryQueue
Sourcepub fn new(bound: ExportQueueBound, report_window: DropReportWindow) -> Self
pub fn new(bound: ExportQueueBound, report_window: DropReportWindow) -> Self
Constructs an empty bounded queue.
Sourcepub fn enqueue(&self, record: TelemetryRecord, now: Duration) -> EnqueueResult
pub fn enqueue(&self, record: TelemetryRecord, now: Duration) -> EnqueueResult
Enqueues without waiting; a full queue drops this newest record.
Trait Implementations§
Source§impl Clone for TelemetryQueue
impl Clone for TelemetryQueue
Source§fn clone(&self) -> TelemetryQueue
fn clone(&self) -> TelemetryQueue
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 moreAuto Trait Implementations§
impl Freeze for TelemetryQueue
impl RefUnwindSafe for TelemetryQueue
impl Send for TelemetryQueue
impl Sync for TelemetryQueue
impl Unpin for TelemetryQueue
impl UnsafeUnpin for TelemetryQueue
impl UnwindSafe for TelemetryQueue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more