pub struct ProgressNotificationSender<F>{ /* private fields */ }Expand description
A notification sender that sends progress notifications via a callback.
This is the server-side implementation used to send notifications back to the client during handler execution.
Implementations§
Source§impl<F> ProgressNotificationSender<F>
impl<F> ProgressNotificationSender<F>
Sourcepub fn new(marker: ProgressMarker, send_fn: F) -> Self
pub fn new(marker: ProgressMarker, send_fn: F) -> Self
Creates a new progress notification sender.
Sourcepub fn into_reporter(self) -> ProgressReporterwhere
Self: 'static,
pub fn into_reporter(self) -> ProgressReporterwhere
Self: 'static,
Creates a progress reporter from this sender.
Trait Implementations§
Source§impl<F> Debug for ProgressNotificationSender<F>
impl<F> Debug for ProgressNotificationSender<F>
Source§impl<F> NotificationSender for ProgressNotificationSender<F>
impl<F> NotificationSender for ProgressNotificationSender<F>
Auto Trait Implementations§
impl<F> Freeze for ProgressNotificationSender<F>where
F: Freeze,
impl<F> RefUnwindSafe for ProgressNotificationSender<F>where
F: RefUnwindSafe,
impl<F> Send for ProgressNotificationSender<F>
impl<F> Sync for ProgressNotificationSender<F>
impl<F> Unpin for ProgressNotificationSender<F>where
F: Unpin,
impl<F> UnwindSafe for ProgressNotificationSender<F>where
F: UnwindSafe,
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: 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).