mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-05-30 05:49:28 -07:00
* api documentation * utoipa openapi docs generator --------- Co-authored-by: Andrej Walilko <awalilko@liquidweb.com>
29 lines
782 B
Rust
29 lines
782 B
Rust
use rayhunter::analysis::analyzer::EventType;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
mod generic_framebuffer;
|
|
|
|
pub mod headless;
|
|
pub mod orbic;
|
|
pub mod tmobile;
|
|
pub mod tplink;
|
|
pub mod tplink_framebuffer;
|
|
pub mod tplink_onebit;
|
|
pub mod uz801;
|
|
pub mod wingtech;
|
|
|
|
/// A list of available display states
|
|
#[derive(Clone, Copy, PartialEq, Serialize, Deserialize)]
|
|
#[cfg_attr(feature = "apidocs", derive(utoipa::ToSchema))]
|
|
pub enum DisplayState {
|
|
/// We're recording but no warning has been found yet.
|
|
Recording,
|
|
/// We're not recording.
|
|
Paused,
|
|
/// A non-informational event has been detected.
|
|
///
|
|
/// Note that EventType::Informational is never sent through this. If it is, it's the same as
|
|
/// Recording
|
|
WarningDetected { event_type: EventType },
|
|
}
|