pub struct PrinterSnapshot {
pub id: String,
pub name: String,
pub info: String,
pub location: String,
pub make_model: String,
pub state: PrinterState,
pub accepting_jobs: bool,
pub backend: String,
}Available on crate feature
zbus-backend only.Expand description
Snapshot of a printer’s identity and status at a point in time.
Fields§
§id: StringThe backend-assigned unique printer ID.
name: StringThe human-readable display name.
info: StringA free-form description of the printer.
location: StringPhysical location string as reported by the backend.
make_model: StringMake and model string (e.g. "HP LaserJet Pro").
state: PrinterStateCurrent state (e.g. idle, processing, stopped).
accepting_jobs: boolWhether the printer is currently accepting new jobs.
backend: StringThe backend that owns this printer (e.g. "CUPS").
Implementations§
Trait Implementations§
Source§impl Clone for PrinterSnapshot
impl Clone for PrinterSnapshot
Source§fn clone(&self) -> PrinterSnapshot
fn clone(&self) -> PrinterSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PrinterSnapshot
impl Debug for PrinterSnapshot
Source§impl Display for PrinterSnapshot
impl Display for PrinterSnapshot
impl Eq for PrinterSnapshot
Source§impl Hash for PrinterSnapshot
impl Hash for PrinterSnapshot
Source§impl PartialEq for PrinterSnapshot
impl PartialEq for PrinterSnapshot
Source§fn eq(&self, other: &PrinterSnapshot) -> bool
fn eq(&self, other: &PrinterSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PrinterSnapshot
Auto Trait Implementations§
impl Freeze for PrinterSnapshot
impl RefUnwindSafe for PrinterSnapshot
impl Send for PrinterSnapshot
impl Sync for PrinterSnapshot
impl Unpin for PrinterSnapshot
impl UnsafeUnpin for PrinterSnapshot
impl UnwindSafe for PrinterSnapshot
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