pub struct ProgressReporter { /* private fields */ }Expand description
Progress reporter that wraps a notification sender with a progress token.
This is the concrete type stored in McpContext that handles sending progress notifications with the correct token.
Implementations§
Source§impl ProgressReporter
impl ProgressReporter
Sourcepub fn new(sender: Arc<dyn NotificationSender>) -> Self
pub fn new(sender: Arc<dyn NotificationSender>) -> Self
Creates a new progress reporter with the given sender.
Trait Implementations§
Source§impl Clone for ProgressReporter
impl Clone for ProgressReporter
Source§fn clone(&self) -> ProgressReporter
fn clone(&self) -> ProgressReporter
Returns a duplicate of the value. Read more
1.0.0 · 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 ProgressReporter
impl !RefUnwindSafe for ProgressReporter
impl Send for ProgressReporter
impl Sync for ProgressReporter
impl Unpin for ProgressReporter
impl !UnwindSafe for ProgressReporter
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).