pub struct LogReporter { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ProgressReporter for LogReporter
impl ProgressReporter for LogReporter
Source§async fn report(
&mut self,
update: &impl Update,
message: &ProgressMessage,
) -> Result<(), UpdateError>
async fn report( &mut self, update: &impl Update, message: &ProgressMessage, ) -> Result<(), UpdateError>
Send a progress message for an update.
The destination and handling of the message is implementation-specific.
Source§async fn report_retry(
&mut self,
update: &impl Update,
message: &ProgressMessage,
attempts: u32,
wait_duration: Duration,
) -> Result<(), UpdateError>
async fn report_retry( &mut self, update: &impl Update, message: &ProgressMessage, attempts: u32, wait_duration: Duration, ) -> Result<(), UpdateError>
Repeatedly retry sending a progress message for an update.
This should be used for important messages, e.g. the final
message to close an update on the update server.
If this is used with a tuple of progress reporters, the message
might be duplicated and sent multiple times to some of the progress reporters.
Auto Trait Implementations§
impl Forget for LogReporter
impl Freeze for LogReporter
impl Move for LogReporter
impl RefUnwindSafe for LogReporter
impl Send for LogReporter
impl Sync for LogReporter
impl Unpin for LogReporter
impl UnsafeUnpin for LogReporter
impl UnwindSafe for LogReporter
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