pub struct ProgressNotificationGuard<R: Runtime> { /* private fields */ }Implementations§
Source§impl<R: Runtime> AsyncProgressNotificationGuard<R>
impl<R: Runtime> AsyncProgressNotificationGuard<R>
pub fn into_sync(self) -> SyncProgressNotificationGuard<R>
pub fn into_async(self) -> AsyncProgressNotificationGuard<R>
pub fn title(&self) -> Option<String>
pub fn text(&self) -> Option<String>
pub fn sub_text(&self) -> Option<String>
pub fn progress(&self) -> Option<u64>
pub fn progress_max(&self) -> Option<u64>
pub async fn update_progress_by(&self, addend: u64) -> Result<()>
pub async fn update_progress(&self, progress: Option<u64>) -> Result<()>
pub async fn update_progress_max(&self, progress_max: Option<u64>) -> Result<()>
pub async fn update_title(&self, title: Option<&str>) -> Result<()>
pub async fn update_text(&self, text: Option<&str>) -> Result<()>
pub async fn update_sub_text(&self, sub_text: Option<&str>) -> Result<()>
pub async fn update( &self, title: Option<&str>, text: Option<&str>, sub_text: Option<&str>, progress: Option<u64>, progress_max: Option<u64>, ) -> Result<()>
pub fn set_drop_behavior_to_complete( &self, title: Option<&str>, text: Option<&str>, sub_text: Option<&str>, )
pub fn set_drop_behavior_to_fail( &self, title: Option<&str>, text: Option<&str>, sub_text: Option<&str>, )
pub async fn complete( self, title: Option<&str>, text: Option<&str>, sub_text: Option<&str>, ) -> Result<()>
pub async fn fail( self, title: Option<&str>, text: Option<&str>, sub_text: Option<&str>, ) -> Result<()>
Auto Trait Implementations§
impl<R> Freeze for AsyncProgressNotificationGuard<R>
impl<R> RefUnwindSafe for AsyncProgressNotificationGuard<R>
impl<R> Send for AsyncProgressNotificationGuard<R>
impl<R> Sync for AsyncProgressNotificationGuard<R>
impl<R> Unpin for AsyncProgressNotificationGuard<R>
impl<R> UnsafeUnpin for AsyncProgressNotificationGuard<R>
impl<R> UnwindSafe for AsyncProgressNotificationGuard<R>
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