pub struct Config { /* private fields */ }
Expand description
User configuration variables.
Implementations§
Source§impl Config
impl Config
Sourcepub fn defer_transport_error(&self) -> bool
pub fn defer_transport_error(&self) -> bool
Return the value of the defer_transport_error configuration variable.
Sourcepub fn set_defer_transport_error(&mut self, value: bool)
pub fn set_defer_transport_error(&mut self, value: bool)
Set the value of the defer_transport_error configuration variable.
Sourcepub fn defer_refused(&self) -> bool
pub fn defer_refused(&self) -> bool
Return the value of the defer_refused configuration variable.
Sourcepub fn set_defer_refused(&mut self, value: bool)
pub fn set_defer_refused(&mut self, value: bool)
Set the value of the defer_refused configuration variable.
Sourcepub fn defer_servfail(&self) -> bool
pub fn defer_servfail(&self) -> bool
Return the value of the defer_servfail configuration variable.
Sourcepub fn set_defer_servfail(&mut self, value: bool)
pub fn set_defer_servfail(&mut self, value: bool)
Set the value of the defer_servfail configuration variable.
Sourcepub fn slow_rt_factor(&self) -> f64
pub fn slow_rt_factor(&self) -> f64
Set the value of the slow_rt_factor configuration variable.
Sourcepub fn set_slow_rt_factor(&mut self, value: f64)
pub fn set_slow_rt_factor(&mut self, value: f64)
Set the value of the slow_rt_factor configuration variable.
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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.