Lines Matching refs:BatControlResult
597 pub enum BatControlResult { enum
607 impl Display for BatControlResult { implementation
609 use self::BatControlResult::*; in fmt()
635 type Err = BatControlResult;
640 _ => Err(BatControlResult::NoSuchBatType), in from_str()
655 type Err = BatControlResult;
664 _ => Err(BatControlResult::NoSuchProperty), in from_str()
679 pub fn new(status: String) -> std::result::Result<Self, BatControlResult> { in new() argument
686 _ => Err(BatControlResult::NoSuchStatus), in new()
692 type Err = BatControlResult;
701 _ => Err(BatControlResult::NoSuchStatus), in from_str()
727 type Err = BatControlResult;
741 _ => Err(BatControlResult::NoSuchHealth), in from_str()
762 pub fn new(property: String, target: String) -> std::result::Result<Self, BatControlResult> { in new() argument
770 .map_err(|_| BatControlResult::StringParseIntErr)?, in new()
775 .map_err(|_| BatControlResult::StringParseIntErr)?, in new()
780 .map_err(|_| BatControlResult::StringParseIntErr)?, in new()
1082 None => VmResponse::BatResponse(BatControlResult::NoBatDevice), in execute()
1117 BatResponse(BatControlResult),