pub struct HmsAlert {
pub code: String,
pub code_hyphen: String,
pub severity: u16,
pub module: String,
pub is_lidar: bool,
pub wiki: String,
pub attr: u32,
pub raw_code: u32,
}Expand description
A decoded HMS alert (the wire view of crate::core::hms::HmsEntry).
severity is the raw bits — label conventions conflict across sources,
so we expose the number and link to the wiki rather than bundling a table.
Fields§
§code: StringCanonical underscore form, e.g. HMS_0300_0100_0001_0007.
code_hyphen: StringHyphen form Bambu shows on-screen, e.g. 0300-0100-0001-0007.
severity: u16Raw severity bits (code >> 16); not mapped to a label.
module: StringOriginating subsystem: motion_controller / mainboard / ams /
toolhead / xcam / unknown:0xNN.
is_lidar: boolXCAM/micro-LiDAR code (only on X1-class hardware).
wiki: StringDeep link to Bambu’s per-code troubleshooting page.
attr: u32Raw attr int (escape hatch for re-deriving fields).
raw_code: u32Raw code int.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HmsAlert
impl<'de> Deserialize<'de> for HmsAlert
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 Eq for HmsAlert
impl StructuralPartialEq for HmsAlert
Auto Trait Implementations§
impl Freeze for HmsAlert
impl RefUnwindSafe for HmsAlert
impl Send for HmsAlert
impl Sync for HmsAlert
impl Unpin for HmsAlert
impl UnsafeUnpin for HmsAlert
impl UnwindSafe for HmsAlert
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
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
Compare self to
key and return true if they are equal.