pub struct BridgeConfig {
pub uds_path: Option<PathBuf>,
pub heartbeat_mirror: bool,
pub heartbeat_timeout_ms: u64,
}Expand description
Bridge daemon configuration parsed from bridge.* keys.
Controls best-effort mirroring of watcher heartbeats over the bridge
daemon’s UDS ControlSocket (heartbeat_emit op). All keys are optional
and the feature is OFF by default.
Fields§
§uds_path: Option<PathBuf>Path to the bridge daemon’s UDS control socket.
When None, defaults to base_dir().join("bridge/control.sock").
heartbeat_mirror: boolWhen true, every watcher heartbeat tick mirrors a heartbeat_emit
JSON-RPC call over the UDS socket. Errors are logged at debug only.
heartbeat_timeout_ms: u64Per-call timeout in milliseconds (covers connect + write + read).
Implementations§
Source§impl BridgeConfig
impl BridgeConfig
Sourcepub fn resolved_uds_path(&self) -> PathBuf
pub fn resolved_uds_path(&self) -> PathBuf
Resolve the UDS path, falling back to the default under base_dir().
Trait Implementations§
Source§impl Clone for BridgeConfig
impl Clone for BridgeConfig
Source§fn clone(&self) -> BridgeConfig
fn clone(&self) -> BridgeConfig
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 BridgeConfig
impl Debug for BridgeConfig
Source§impl Default for BridgeConfig
impl Default for BridgeConfig
Source§fn default() -> BridgeConfig
fn default() -> BridgeConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BridgeConfig
impl RefUnwindSafe for BridgeConfig
impl Send for BridgeConfig
impl Sync for BridgeConfig
impl Unpin for BridgeConfig
impl UnsafeUnpin for BridgeConfig
impl UnwindSafe for BridgeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.