get_close_circuits

Function get_close_circuits 

Source
pub fn get_close_circuits() -> bool
Expand description

Gets the global close circuits flag.

Returns whether circuits will be closed when attacks are detected.

§Returns

true if circuit closure is enabled, false if in monitoring-only mode.

§Thread Safety

This function uses atomic operations and is safe to call from any thread.

§Example

use vanguards_rs::control::get_close_circuits;

if get_close_circuits() {
    println!("Circuit closure is enabled");
} else {
    println!("Monitoring-only mode");
}