diff --git a/ica-rs/Cargo.toml b/ica-rs/Cargo.toml index 33fd717..28e5a14 100644 --- a/ica-rs/Cargo.toml +++ b/ica-rs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ica-rs" -version = "0.4.9" +version = "0.4.10" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/ica-rs/ica_typing.py b/ica-rs/ica_typing.py index 0f172cd..d7ba009 100644 --- a/ica-rs/ica_typing.py +++ b/ica-rs/ica_typing.py @@ -94,6 +94,11 @@ class IcaClient: """ def send_message(self, message: SendMessage) -> bool: ... + + @property + def status() -> IcaStatus: + ... + def debug(self, message: str) -> None: """向日志中输出调试信息""" def info(self, message: str) -> None: diff --git a/ica-rs/src/py/class.rs b/ica-rs/src/py/class.rs index 827fabb..2f15b20 100644 --- a/ica-rs/src/py/class.rs +++ b/ica-rs/src/py/class.rs @@ -238,6 +238,11 @@ impl IcaClientPy { }) } + #[getter] + pub fn get_status(&self) -> IcaStatusPy { + IcaStatusPy::new() + } + pub fn debug(&self, content: String) { debug!("{}", content); }