pub enum PropertyChange {
Name {
old: String,
new: String,
},
Status {
old: PrinterStatus,
new: PrinterStatus,
},
State {
old: Option<PrinterState>,
new: Option<PrinterState>,
},
ErrorState {
old: ErrorState,
new: ErrorState,
},
IsOffline {
old: bool,
new: bool,
},
IsDefault {
old: bool,
new: bool,
},
PrinterStatusCode {
old: Option<u32>,
new: Option<u32>,
},
PrinterStateCode {
old: Option<u32>,
new: Option<u32>,
},
DetectedErrorStateCode {
old: Option<u32>,
new: Option<u32>,
},
ExtendedDetectedErrorStateCode {
old: Option<u32>,
new: Option<u32>,
},
ExtendedPrinterStatusCode {
old: Option<u32>,
new: Option<u32>,
},
WmiStatus {
old: Option<String>,
new: Option<String>,
},
}Expand description
Represents a change in a specific printer property
Variants§
Name
Status
State
ErrorState
IsOffline
IsDefault
PrinterStatusCode
PrinterStateCode
DetectedErrorStateCode
ExtendedDetectedErrorStateCode
ExtendedPrinterStatusCode
WmiStatus
Implementations§
Source§impl PropertyChange
impl PropertyChange
Sourcepub fn property_name(&self) -> &'static str
pub fn property_name(&self) -> &'static str
Returns the name of the property that changed
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Returns a human-readable description of the change
Trait Implementations§
Source§impl Clone for PropertyChange
impl Clone for PropertyChange
Source§fn clone(&self) -> PropertyChange
fn clone(&self) -> PropertyChange
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 PropertyChange
impl Debug for PropertyChange
Source§impl PartialEq for PropertyChange
impl PartialEq for PropertyChange
impl StructuralPartialEq for PropertyChange
Auto Trait Implementations§
impl Freeze for PropertyChange
impl RefUnwindSafe for PropertyChange
impl Send for PropertyChange
impl Sync for PropertyChange
impl Unpin for PropertyChange
impl UnwindSafe for PropertyChange
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