pub struct AirgapConfig {
pub enabled: bool,
pub allowed_transports: Vec<TransportType>,
pub allowed_media: Vec<String>,
pub allowed_shares: Vec<String>,
pub strict_mode: bool,
pub audit_log: bool,
pub audit_log_path: Option<String>,
}Expand description
Airgap configuration for isolated network environments
Fields§
§enabled: boolEnable airgap mode (blocks all network protocols)
allowed_transports: Vec<TransportType>Allowed transport types
allowed_media: Vec<String>Allowed removable media paths (USB drives, etc.)
Allowed network shares (SMB/CIFS paths)
strict_mode: boolEnable strict mode (blocks even LAN protocols)
audit_log: boolAudit logging for transport access
audit_log_path: Option<String>Audit log path
Implementations§
Source§impl AirgapConfig
impl AirgapConfig
Sourcepub fn enable_airgap_mode()
pub fn enable_airgap_mode()
Enable airgap mode globally
Sourcepub fn disable_airgap_mode()
pub fn disable_airgap_mode()
Disable airgap mode globally
Sourcepub fn is_airgap_mode() -> bool
pub fn is_airgap_mode() -> bool
Check if airgap mode is enabled
Trait Implementations§
Source§impl Clone for AirgapConfig
impl Clone for AirgapConfig
Source§fn clone(&self) -> AirgapConfig
fn clone(&self) -> AirgapConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AirgapConfig
impl Debug for AirgapConfig
Source§impl Default for AirgapConfig
impl Default for AirgapConfig
Source§impl<'de> Deserialize<'de> for AirgapConfigwhere
AirgapConfig: Default,
impl<'de> Deserialize<'de> for AirgapConfigwhere
AirgapConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AirgapConfig
impl RefUnwindSafe for AirgapConfig
impl Send for AirgapConfig
impl Sync for AirgapConfig
impl Unpin for AirgapConfig
impl UnsafeUnpin for AirgapConfig
impl UnwindSafe for AirgapConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more