#[non_exhaustive]pub enum Firmware {
Version {
major: u16,
minor: u16,
patch: u16,
},
Build(u32),
Protocol(u8),
Text(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Version
Build(u32)
Protocol(u8)
the protocol number a box speaks, which only shows up in the error of a Medius that’s too old or too new.
its Info has the version
Text(String)
Trait Implementations§
impl Eq for Firmware
impl StructuralPartialEq for Firmware
Auto Trait Implementations§
impl Freeze for Firmware
impl RefUnwindSafe for Firmware
impl Send for Firmware
impl Sync for Firmware
impl Unpin for Firmware
impl UnsafeUnpin for Firmware
impl UnwindSafe for Firmware
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