pub struct DeviceError {
pub code: i64,
pub hex: String,
pub message: Option<String>,
pub lookup_url: String,
}Expand description
A device-level fault decoded from print_error (0 = no error). This is a
separate channel from HMS — on the A1 mini a failing SD card reported
print_error = 0x0500C010 while hms stayed empty, so a status view must
surface print_error in its own right.
We don’t bundle the full third-party code→text table (sources conflict; same
rationale as crate::core::hms) — but we DO attach a plain-language
message for the handful of codes verified on the
real device, and always emit the hex + a lookup link.
Fields§
§code: i64Raw print_error value.
hex: StringConventional hex rendering, e.g. 0x0500C010.
message: Option<String>Plain-language cause — present ONLY for codes we’ve verified on the real
device (the printer’s own on-screen message). Unverified codes leave
this None and rely on lookup_url, so we never surface a guessed cause.
lookup_url: StringLink to Bambu’s official error-code resolver for this code (we don’t
bundle the full code→text table — sources conflict — so we point at the
authority instead, the same way crate::core::hms links to the wiki).
Implementations§
Trait Implementations§
Source§impl Clone for DeviceError
impl Clone for DeviceError
Source§fn clone(&self) -> DeviceError
fn clone(&self) -> DeviceError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeviceError
impl Debug for DeviceError
Source§impl<'de> Deserialize<'de> for DeviceError
impl<'de> Deserialize<'de> for DeviceError
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>,
impl Eq for DeviceError
Source§impl PartialEq for DeviceError
impl PartialEq for DeviceError
Source§fn eq(&self, other: &DeviceError) -> bool
fn eq(&self, other: &DeviceError) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for DeviceError
impl Serialize for DeviceError
impl StructuralPartialEq for DeviceError
Auto Trait Implementations§
impl Freeze for DeviceError
impl RefUnwindSafe for DeviceError
impl Send for DeviceError
impl Sync for DeviceError
impl Unpin for DeviceError
impl UnsafeUnpin for DeviceError
impl UnwindSafe for DeviceError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.