pub struct PrinterRecord {
pub config: PrinterConfig,
pub state: IppPrinterState,
pub reasons: PrinterReason,
pub uuid: String,
pub ready_media: Option<ReadyMedia>,
pub supply_percent: Option<u8>,
}Expand description
Runtime printer entry in the server registry.
Fields§
§config: PrinterConfig§state: IppPrinterState§reasons: PrinterReason§uuid: String§ready_media: Option<ReadyMedia>Live media loaded in the device, set by the status poller. None until
the first successful poll — the attribute builder then falls back to the
configured default for media-ready / media-col-ready.
supply_percent: Option<u8>Live remaining-supply level 0–100 from the status poller. None falls
back to a full static printer-supply.
Implementations§
Source§impl PrinterRecord
impl PrinterRecord
Sourcepub fn new(config: PrinterConfig) -> Self
pub fn new(config: PrinterConfig) -> Self
Wrap a config in a fresh record (state = Idle, no reasons set, new UUID).
Trait Implementations§
Source§impl Clone for PrinterRecord
impl Clone for PrinterRecord
Source§fn clone(&self) -> PrinterRecord
fn clone(&self) -> PrinterRecord
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 moreAuto Trait Implementations§
impl Freeze for PrinterRecord
impl RefUnwindSafe for PrinterRecord
impl Send for PrinterRecord
impl Sync for PrinterRecord
impl Unpin for PrinterRecord
impl UnsafeUnpin for PrinterRecord
impl UnwindSafe for PrinterRecord
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