pub struct ConnConfig { /* private fields */ }
Expand description
Configuration variables for each upstream.
Implementations§
Source§impl ConnConfig
impl ConnConfig
Sourcepub fn max_burst(&mut self) -> Option<u64>
pub fn max_burst(&mut self) -> Option<u64>
Return the current configuration value for the maximum burst. None means that there is no limit.
Sourcepub fn set_max_burst(&mut self, max_burst: Option<u64>)
pub fn set_max_burst(&mut self, max_burst: Option<u64>)
Set the configuration value for the maximum burst. The value None means no limit.
Sourcepub fn burst_interval(&mut self) -> Duration
pub fn burst_interval(&mut self) -> Duration
Return the current burst interval.
Sourcepub fn set_burst_interval(&mut self, burst_interval: Duration)
pub fn set_burst_interval(&mut self, burst_interval: Duration)
Set a new burst interval.
The interval is silently limited to at least 1 millesecond and at most 1 hour.
Trait Implementations§
Source§impl Clone for ConnConfig
impl Clone for ConnConfig
Source§fn clone(&self) -> ConnConfig
fn clone(&self) -> ConnConfig
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 ConnConfig
impl Debug for ConnConfig
Source§impl Default for ConnConfig
impl Default for ConnConfig
Source§fn default() -> ConnConfig
fn default() -> ConnConfig
Returns the “default value” for a type. Read more
impl Copy for ConnConfig
Auto Trait Implementations§
impl Freeze for ConnConfig
impl RefUnwindSafe for ConnConfig
impl Send for ConnConfig
impl Sync for ConnConfig
impl Unpin for ConnConfig
impl UnwindSafe for ConnConfig
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> 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>
Source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.