From 85608570bf0040148f2cbe07b2731c35292c8e75 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sun, 25 Feb 2024 00:22:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E5=92=8C=E6=B7=BB=E5=8A=A0=E7=8A=B6=E6=80=81=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/Cargo.toml | 2 +- ica-rs/ica_typing.py | 5 +++++ ica-rs/src/py/class.rs | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) 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); }