pub struct PrinterConnectionChangedPayload {
pub detail: String,
pub from: PrinterState,
pub to: PrinterState,
}Expand description
The printer’s connection changed into or out of offline or error: a
serial disconnect, a reconnect, a printer error.
The printer’s rather than any print’s, so it is written with no print.
Fields§
§detail: StringWhat the watch read, in words.
from: PrinterStateThe state the previous read found.
to: PrinterStateThe state this read found.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PrinterConnectionChangedPayload
impl<'de> Deserialize<'de> for PrinterConnectionChangedPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for PrinterConnectionChangedPayload
Auto Trait Implementations§
impl Freeze for PrinterConnectionChangedPayload
impl RefUnwindSafe for PrinterConnectionChangedPayload
impl Send for PrinterConnectionChangedPayload
impl Sync for PrinterConnectionChangedPayload
impl Unpin for PrinterConnectionChangedPayload
impl UnsafeUnpin for PrinterConnectionChangedPayload
impl UnwindSafe for PrinterConnectionChangedPayload
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