#[non_exhaustive]pub enum JobStatus {
Show 15 variants
None,
Paused,
Error,
Deleting,
Spooling,
Printing,
Offline,
PaperOut,
Printed,
Deleted,
BlockedDeviceQueue,
UserIntervention,
Restart,
Complete,
Unknown,
}Expand description
High-level status of a print job, parsed from the
Win32_PrintJob.JobStatus bitmask.
Multiple bits may be set simultaneously (a Paused job that also hit an
Error for example); [Self::from_u32] resolves the most informative
single variant using a priority chain similar to PrinterState::from_u32.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Paused
Error
Deleting
Spooling
Printing
Offline
PaperOut
Printed
Deleted
BlockedDeviceQueue
UserIntervention
Restart
Complete
Unknown
Implementations§
Trait Implementations§
impl Eq for JobStatus
impl StructuralPartialEq for JobStatus
Auto Trait Implementations§
impl Freeze for JobStatus
impl RefUnwindSafe for JobStatus
impl Send for JobStatus
impl Sync for JobStatus
impl Unpin for JobStatus
impl UnsafeUnpin for JobStatus
impl UnwindSafe for JobStatus
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