trussed_core/client/management.rs
1use super::{ClientResult, PollClient};
2use crate::{
3 api::{reply, request},
4 types::reboot,
5};
6
7/// All the other methods that are fit to expose.
8pub trait ManagementClient: PollClient {
9 fn reboot(&mut self, to: reboot::To) -> ClientResult<'_, reply::Reboot, Self> {
10 self.request(request::Reboot { to })
11 }
12
13 fn uptime(&mut self) -> ClientResult<'_, reply::Uptime, Self> {
14 self.request(request::Uptime {})
15 }
16}