pub struct SystemManager { /* private fields */ }Expand description
System manager for obniz device control
Implementations§
Source§impl SystemManager
impl SystemManager
pub fn new(obniz: Obniz) -> Self
Sourcepub async fn reset(&self) -> ObnizResult<()>
pub async fn reset(&self) -> ObnizResult<()>
Reset the obniz device
Sourcepub async fn info(&self) -> ObnizResult<SystemInfo>
pub async fn info(&self) -> ObnizResult<SystemInfo>
Get system information
Sourcepub async fn reset_on_disconnect(&self, enable: bool) -> ObnizResult<()>
pub async fn reset_on_disconnect(&self, enable: bool) -> ObnizResult<()>
Configure reset behavior on WebSocket disconnection
Sourcepub async fn keep_alive(&self) -> ObnizResult<()>
pub async fn keep_alive(&self) -> ObnizResult<()>
Keep alive - prevent auto sleep
Sourcepub async fn ping_interval(&self, interval_ms: u32) -> ObnizResult<()>
pub async fn ping_interval(&self, interval_ms: u32) -> ObnizResult<()>
Set ping interval for connection monitoring
Sourcepub async fn status(&self) -> ObnizResult<Value>
pub async fn status(&self) -> ObnizResult<Value>
Get device status
Trait Implementations§
Source§impl Clone for SystemManager
impl Clone for SystemManager
Auto Trait Implementations§
impl !RefUnwindSafe for SystemManager
impl !UnwindSafe for SystemManager
impl Freeze for SystemManager
impl Send for SystemManager
impl Sync for SystemManager
impl Unpin for SystemManager
impl UnsafeUnpin for SystemManager
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