pub struct PyRuntime { /* private fields */ }Expand description
由插件注册到 Tauri 状态中的运行时句柄,通过 PyRuntimeExt::py_runtime 获取。
Implementations§
Source§impl PyRuntime
impl PyRuntime
Sourcepub fn supervisor(&self) -> &Arc<Supervisor> ⓘ
pub fn supervisor(&self) -> &Arc<Supervisor> ⓘ
返回底层的 Supervisor,可用于从 Rust 调用 Python 命令、发送事件或查询状态。
Auto Trait Implementations§
impl !RefUnwindSafe for PyRuntime
impl !UnwindSafe for PyRuntime
impl Forget for PyRuntime
impl Freeze for PyRuntime
impl Move for PyRuntime
impl Send for PyRuntime
impl Sync for PyRuntime
impl Unpin for PyRuntime
impl UnsafeUnpin for PyRuntime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more