use crate::{
camera::{Camera, CameraFeatures},
errors::WardError,
};
pub trait SystemFeatures {
fn reboot(&self) -> Result<(), WardError>;
}
impl SystemFeatures for Camera {
fn reboot(&self) -> Result<(), WardError> {
Ok(self.send_request("/restart_cgi?")?.check_status_code()?)
}
}