pub enum NotificationType {
Starting,
Succeeded,
Failed,
Unknown,
}Expand description
Type of notification event.
Variants§
Starting
Operation is starting
Succeeded
Operation succeeded
Failed
Operation failed
Unknown
Unknown notification type
Implementations§
Source§impl NotificationType
impl NotificationType
Sourcepub fn is_starting(&self) -> bool
pub fn is_starting(&self) -> bool
Check if this is a starting notification.
Sourcepub fn is_succeeded(&self) -> bool
pub fn is_succeeded(&self) -> bool
Check if this is a succeeded notification.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if the operation is complete (succeeded or failed).
Trait Implementations§
Source§impl Clone for NotificationType
impl Clone for NotificationType
Source§fn clone(&self) -> NotificationType
fn clone(&self) -> NotificationType
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 moreSource§impl Debug for NotificationType
impl Debug for NotificationType
Source§impl From<&str> for NotificationType
impl From<&str> for NotificationType
Source§impl Hash for NotificationType
impl Hash for NotificationType
Source§impl PartialEq for NotificationType
impl PartialEq for NotificationType
impl Copy for NotificationType
impl Eq for NotificationType
impl StructuralPartialEq for NotificationType
Auto Trait Implementations§
impl Freeze for NotificationType
impl RefUnwindSafe for NotificationType
impl Send for NotificationType
impl Sync for NotificationType
impl Unpin for NotificationType
impl UnwindSafe for NotificationType
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