pub struct ProgressRegistry { /* private fields */ }Expand description
Global registry for progress events
Uses a lock-free queue for event storage and broadcast channel for real-time subscribers.
Implementations§
Source§impl ProgressRegistry
impl ProgressRegistry
Sourcepub fn start_operation(
self: &Arc<Self>,
source: &str,
granularity: ProgressGranularity,
) -> ProgressHandle
pub fn start_operation( self: &Arc<Self>, source: &str, granularity: ProgressGranularity, ) -> ProgressHandle
Start a new operation and return a handle for reporting progress
Sourcepub fn subscribe(&self) -> Receiver<ProgressEvent>
pub fn subscribe(&self) -> Receiver<ProgressEvent>
Subscribe to real-time progress events
Sourcepub fn poll(&self) -> Option<ProgressEvent>
pub fn poll(&self) -> Option<ProgressEvent>
Poll for a single event (non-blocking)
Sourcepub fn poll_all(&self) -> Vec<ProgressEvent>
pub fn poll_all(&self) -> Vec<ProgressEvent>
Poll all available events (non-blocking)
Sourcepub fn try_recv(&self) -> Option<ProgressEvent>
pub fn try_recv(&self) -> Option<ProgressEvent>
Try to receive a single event (non-blocking, alias for poll)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ProgressRegistry
impl !RefUnwindSafe for ProgressRegistry
impl Send for ProgressRegistry
impl Sync for ProgressRegistry
impl Unpin for ProgressRegistry
impl UnsafeUnpin for ProgressRegistry
impl !UnwindSafe for ProgressRegistry
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> 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