pub struct ResolvedDrainConfig {
pub bindings: HashMap<AgentDrain, ResolvedDrainBinding>,
pub provider_fallback: HashMap<String, Vec<String>>,
pub max_retries: u32,
pub retry_delay_ms: u64,
pub backoff_multiplier: f64,
pub max_backoff_ms: u64,
pub max_cycles: u32,
}Expand description
Fully resolved drain configuration consumed by the runtime.
Fields§
§bindings: HashMap<AgentDrain, ResolvedDrainBinding>§provider_fallback: HashMap<String, Vec<String>>§max_retries: u32§retry_delay_ms: u64§backoff_multiplier: f64§max_backoff_ms: u64§max_cycles: u32Implementations§
Source§impl ResolvedDrainConfig
impl ResolvedDrainConfig
Sourcepub fn binding(&self, drain: AgentDrain) -> Option<&ResolvedDrainBinding>
pub fn binding(&self, drain: AgentDrain) -> Option<&ResolvedDrainBinding>
Return the binding for a specific drain.
Sourcepub fn from_legacy(fallback: &FallbackConfig) -> Self
pub fn from_legacy(fallback: &FallbackConfig) -> Self
Build a resolved drain config from the legacy role-shaped fallback config.
Sourcepub fn to_legacy_fallback(&self) -> FallbackConfig
pub fn to_legacy_fallback(&self) -> FallbackConfig
Project resolved drain bindings back into the legacy role-shaped config.
This is a compatibility view for config/error reporting. Runtime code should consume resolved drain bindings directly.
Trait Implementations§
Source§impl Clone for ResolvedDrainConfig
impl Clone for ResolvedDrainConfig
Source§fn clone(&self) -> ResolvedDrainConfig
fn clone(&self) -> ResolvedDrainConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ResolvedDrainConfig
impl Debug for ResolvedDrainConfig
Source§impl<'de> Deserialize<'de> for ResolvedDrainConfig
impl<'de> Deserialize<'de> for ResolvedDrainConfig
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
Source§impl PartialEq for ResolvedDrainConfig
impl PartialEq for ResolvedDrainConfig
Source§impl Serialize for ResolvedDrainConfig
impl Serialize for ResolvedDrainConfig
impl StructuralPartialEq for ResolvedDrainConfig
Auto Trait Implementations§
impl Freeze for ResolvedDrainConfig
impl RefUnwindSafe for ResolvedDrainConfig
impl Send for ResolvedDrainConfig
impl Sync for ResolvedDrainConfig
impl Unpin for ResolvedDrainConfig
impl UnsafeUnpin for ResolvedDrainConfig
impl UnwindSafe for ResolvedDrainConfig
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> 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>
Converts
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>
Converts
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