struct FileConfig {
environment: EnvironmentConfig,
poll_interval: u64,
heartbeat_interval: u64,
offline_grace: u64,
max_retry_attempts: u32,
retry_base_delay: u64,
script_root: Option<PathBuf>,
script_timeout: u64,
powershell_path: Option<PathBuf>,
powershell_execution_policy: String,
entra_verify_probe: bool,
targets: HashMap<Uuid, TargetEntry>,
}Expand description
On-disk connector configuration (TOML); every key is optional. A token key is rejected as
unknown, since the token comes only from BWAC_TOKEN.
Fields§
§environment: EnvironmentConfig§poll_interval: u64Poll interval in seconds.
heartbeat_interval: u64Heartbeat interval in seconds.
offline_grace: u64Offline grace period in seconds.
max_retry_attempts: u32Total number of attempts for each retryable rotation step.
retry_base_delay: u64Base delay for exponential backoff in seconds.
script_root: Option<PathBuf>Root directory for custom scripts. No built-in default.
script_timeout: u64Custom-script timeout in seconds.
powershell_path: Option<PathBuf>PowerShell host path. None discovers pwsh, then powershell.exe, on PATH.
powershell_execution_policy: String-ExecutionPolicy for the PowerShell host. Defaults to Bypass because Windows Server’s
RemoteSigned refuses unsigned .ps1 and script_root already pins the path; sites that
sign scripts should set AllSigned.
entra_verify_probe: boolWhether the Entra ROPC verify probe is enabled.
targets: HashMap<Uuid, TargetEntry>Per-target credential overrides from the [targets] section.
Implementations§
Source§impl FileConfig
impl FileConfig
Sourcefn load(path: &Path) -> Result<Self, AccessConnectorError>
fn load(path: &Path) -> Result<Self, AccessConnectorError>
Read and parse the file at path.
Trait Implementations§
Source§impl Debug for FileConfig
impl Debug for FileConfig
Source§impl Default for FileConfig
Built-in defaults for keys the file omits.
impl Default for FileConfig
Built-in defaults for keys the file omits.
Source§impl<'de> Deserialize<'de> for FileConfigwhere
FileConfig: Default,
impl<'de> Deserialize<'de> for FileConfigwhere
FileConfig: 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>,
Auto Trait Implementations§
impl Freeze for FileConfig
impl RefUnwindSafe for FileConfig
impl Send for FileConfig
impl Sync for FileConfig
impl Unpin for FileConfig
impl UnsafeUnpin for FileConfig
impl UnwindSafe for FileConfig
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more