pub struct HostConfig {
pub max_agents: Option<NonZeroUsize>,
pub host_idle_timeout_ms: Option<NonZeroU64>,
pub default_timeouts: Timeouts,
pub hard_timeout_limits: Timeouts,
}Fields§
§max_agents: Option<NonZeroUsize>Resident backend instances, including starting/closing reservations. None disables the count cap, not future byte/queue budgets.
host_idle_timeout_ms: Option<NonZeroU64>§default_timeouts: Timeouts§hard_timeout_limits: TimeoutsA finite hard limit also prohibits disabling that timeout.
Implementations§
Source§impl HostConfig
impl HostConfig
pub fn validate(&self) -> HostResult<()>
pub fn resolve_timeouts( &self, overrides: TimeoutOverrides, ) -> HostResult<EffectiveTimeouts>
Trait Implementations§
Source§impl Clone for HostConfig
impl Clone for HostConfig
Source§impl Debug for HostConfig
impl Debug for HostConfig
Source§impl Default for HostConfig
impl Default for HostConfig
Source§impl<'de> Deserialize<'de> for HostConfigwhere
HostConfig: Default,
impl<'de> Deserialize<'de> for HostConfigwhere
HostConfig: 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
impl Eq for HostConfig
Source§impl PartialEq for HostConfig
impl PartialEq for HostConfig
Source§impl Serialize for HostConfig
impl Serialize for HostConfig
impl StructuralPartialEq for HostConfig
Auto Trait Implementations§
impl Forget for HostConfig
impl Freeze for HostConfig
impl Move for HostConfig
impl RefUnwindSafe for HostConfig
impl Send for HostConfig
impl Sync for HostConfig
impl Unpin for HostConfig
impl UnsafeUnpin for HostConfigwhere
NonZeroUsizeInner: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
impl UnwindSafe for HostConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> MaybeSendSync for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().