pub enum CanMakeProgress {
AbleToMakeProgress,
UnableToMakeProgress,
}Expand description
Provides a way to ensure the calling code knows if it is calling a function that cannot do anything useful anymore
Variants§
AbleToMakeProgress
Used to indicate that it is still possible for progress to be made
UnableToMakeProgress
Used to indicate that further calls are not useful as no progress can be made in current state
Implementations§
Source§impl CanMakeProgress
impl CanMakeProgress
Sourcepub fn is_able_to_make_progress(&self) -> bool
pub fn is_able_to_make_progress(&self) -> bool
Returns true if the can make progress is AbleToMakeProgress.
Sourcepub fn is_unable_to_make_progress(&self) -> bool
pub fn is_unable_to_make_progress(&self) -> bool
Returns true if the can make progress is UnableToMakeProgress.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CanMakeProgress
impl RefUnwindSafe for CanMakeProgress
impl Send for CanMakeProgress
impl Sync for CanMakeProgress
impl Unpin for CanMakeProgress
impl UnwindSafe for CanMakeProgress
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