pub enum PurgeStatus {
Ok,
Partial,
Busy,
}Expand description
The outcome of a purge_all / purge_all_ex call (issue #366).
Partial is a normal outcome, not an error: in a default build only threads
parked in park_while_idle can be swept from another thread, so every running
thread is reported as pending. Only Busy means nothing happened at all.
Variants§
Ok
Every registered thread was reached (MI_PURGE_OK).
Partial
Some owners were still pending when wait_ms ran out; everything reachable was
purged (MI_PURGE_PARTIAL). See PurgeAllReport::theaps_pending.
Busy
Another purge is in flight, or this is a re-entrant call: nothing was done
(MI_PURGE_BUSY).
Trait Implementations§
Source§impl Clone for PurgeStatus
impl Clone for PurgeStatus
impl Copy for PurgeStatus
Source§impl Debug for PurgeStatus
impl Debug for PurgeStatus
impl Eq for PurgeStatus
Source§impl PartialEq for PurgeStatus
impl PartialEq for PurgeStatus
impl StructuralPartialEq for PurgeStatus
Auto Trait Implementations§
impl Freeze for PurgeStatus
impl RefUnwindSafe for PurgeStatus
impl Send for PurgeStatus
impl Sync for PurgeStatus
impl Unpin for PurgeStatus
impl UnsafeUnpin for PurgeStatus
impl UnwindSafe for PurgeStatus
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