Struct Connect
pub struct Connect {
pub timeout: Duration,
pub min_retry_delay: Duration,
pub max_retry_delay: Duration,
}Fields§
§timeout: Duration§min_retry_delay: Duration§max_retry_delay: DurationImplementations§
§impl Connect
impl Connect
pub(crate) fn apply_defaults(&mut self)
fn apply(&self, builder: &mut ConnectOptionsBuilder)
pub(crate) fn get_retry_delay(&self, failed: u32) -> Duration
Trait Implementations§
§impl<'de> Deserialize<'de> for Connect
impl<'de> Deserialize<'de> for Connect
§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
Auto Trait Implementations§
impl Freeze for Connect
impl RefUnwindSafe for Connect
impl Send for Connect
impl Sync for Connect
impl Unpin for Connect
impl UnwindSafe for Connect
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