更新版本号和添加状态属性

This commit is contained in:
shenjack 2024-02-25 00:22:09 +08:00
parent 0420cf36b2
commit 85608570bf
Signed by: shenjack
GPG Key ID: 7B1134A979775551
3 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "ica-rs" name = "ica-rs"
version = "0.4.9" version = "0.4.10"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -94,6 +94,11 @@ class IcaClient:
""" """
def send_message(self, message: SendMessage) -> bool: def send_message(self, message: SendMessage) -> bool:
... ...
@property
def status() -> IcaStatus:
...
def debug(self, message: str) -> None: def debug(self, message: str) -> None:
"""向日志中输出调试信息""" """向日志中输出调试信息"""
def info(self, message: str) -> None: def info(self, message: str) -> None:

View File

@ -238,6 +238,11 @@ impl IcaClientPy {
}) })
} }
#[getter]
pub fn get_status(&self) -> IcaStatusPy {
IcaStatusPy::new()
}
pub fn debug(&self, content: String) { pub fn debug(&self, content: String) {
debug!("{}", content); debug!("{}", content);
} }