pub struct SelfTestReport {
pub passed: bool,
pub failed_items: u32,
pub checks: Vec<(CheckLevel, String)>,
pub lines: Vec<String>,
}Expand description
AT+SELFTEST 的应答:重新自检一遍得到的完整报告。
Fields§
§passed: bool是否全部通过。
failed_items: u32失败的项数。
checks: Vec<(CheckLevel, String)>报告中带 [PASS] / [FAIL] / [INFO] 标记的行(去掉标记后的文字)。
lines: Vec<String>报告的全部原始行。
Trait Implementations§
Source§impl Clone for SelfTestReport
impl Clone for SelfTestReport
Source§fn clone(&self) -> SelfTestReport
fn clone(&self) -> SelfTestReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelfTestReport
impl Debug for SelfTestReport
Source§impl PartialEq for SelfTestReport
impl PartialEq for SelfTestReport
impl Eq for SelfTestReport
impl StructuralPartialEq for SelfTestReport
Auto Trait Implementations§
impl Freeze for SelfTestReport
impl RefUnwindSafe for SelfTestReport
impl Send for SelfTestReport
impl Sync for SelfTestReport
impl Unpin for SelfTestReport
impl UnwindSafe for SelfTestReport
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