xiaoai 0.1.2

Utils to remote XiaoAi; 远程操作小爱同学(小爱音箱)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Error, Debug)]
pub enum XiaoaiErr {
    #[error("Login failed: {0}")]
    Auth(String),
    #[error("Op failed: {0}")]
    Op(String),
    #[error("Record query failed: {0}")]
    Record(String),
}

pub type Result<T> = std::result::Result<T, XiaoaiErr>;