pub struct PrinterRecord {
pub config: PrinterConfig,
pub state: IppPrinterState,
pub reasons: PrinterReason,
pub uuid: String,
}Expand description
Runtime printer entry in the server registry.
Fields§
§config: PrinterConfig§state: IppPrinterState§reasons: PrinterReason§uuid: StringImplementations§
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