mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-03-24 11:56:36 +08:00
feat: 支持在线升级功能
This commit is contained in:
@@ -39,7 +39,6 @@ pub struct AppConfig {
|
||||
pub rtsp: RtspConfig,
|
||||
}
|
||||
|
||||
|
||||
/// Authentication configuration
|
||||
#[typeshare]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
@@ -113,7 +112,6 @@ pub enum HidBackend {
|
||||
None,
|
||||
}
|
||||
|
||||
|
||||
/// OTG USB device descriptor configuration
|
||||
#[typeshare]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
||||
@@ -165,7 +163,6 @@ pub enum OtgHidProfile {
|
||||
Custom,
|
||||
}
|
||||
|
||||
|
||||
/// OTG HID function selection (used when profile is Custom)
|
||||
#[typeshare]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
||||
@@ -354,7 +351,6 @@ pub struct AtxConfig {
|
||||
pub wol_interface: String,
|
||||
}
|
||||
|
||||
|
||||
impl AtxConfig {
|
||||
/// Convert to AtxControllerConfig for the controller
|
||||
pub fn to_controller_config(&self) -> crate::atx::AtxControllerConfig {
|
||||
@@ -456,7 +452,6 @@ impl Default for RtspConfig {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Encoder type
|
||||
#[typeshare]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
||||
@@ -482,7 +477,6 @@ pub enum EncoderType {
|
||||
V4l2m2m,
|
||||
}
|
||||
|
||||
|
||||
impl EncoderType {
|
||||
/// Convert to EncoderBackend for registry queries
|
||||
pub fn to_backend(&self) -> Option<crate::video::encoder::registry::EncoderBackend> {
|
||||
|
||||
Reference in New Issue
Block a user