wards 0.1.10

Библиотека для камеры Beward B2530RZQ-LP
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()?)
    }
}