pub enum ThrottleField {
Enabled(bool),
Spec(ThrottleSpec),
}Expand description
throttle: — adaptive backpressure governor: boolean sugar
(throttle: true = all defaults) or the full spec map.
Variants§
Enabled(bool)
throttle: true (defaults) / throttle: false (explicit off).
Spec(ThrottleSpec)
Full spec map.
Implementations§
Source§impl ThrottleField
impl ThrottleField
Sourcepub fn to_spec(&self) -> Option<ThrottleSpec>
pub fn to_spec(&self) -> Option<ThrottleSpec>
Normalize: true → the default spec, false → None.
Trait Implementations§
Source§impl Clone for ThrottleField
impl Clone for ThrottleField
Source§impl Debug for ThrottleField
impl Debug for ThrottleField
Source§impl<'de> Deserialize<'de> for ThrottleField
impl<'de> Deserialize<'de> for ThrottleField
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 ThrottleField
impl PartialEq for ThrottleField
Source§impl Serialize for ThrottleField
impl Serialize for ThrottleField
impl StructuralPartialEq for ThrottleField
Auto Trait Implementations§
impl Forget for ThrottleField
impl Freeze for ThrottleField
impl Move for ThrottleField
impl RefUnwindSafe for ThrottleField
impl Send for ThrottleFieldwhere
RawVecInner: Send,
impl Sync for ThrottleFieldwhere
RawVecInner: Sync,
impl Unpin for ThrottleField
impl UnsafeUnpin for ThrottleField
impl UnwindSafe for ThrottleFieldwhere
RawVecInner: UnwindSafe,
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