[][src]Enum nakadion::components::connector::ConnectOnConflictRetryDelaySecs

pub enum ConnectOnConflictRetryDelaySecs {
    Default,
    Seconds(u64),
}

The retry delay between failed attempts when the previous one was a conflict.

The defualt is 30 seconds

Variants

Default

Use the same delay as after any other failed connect attempt

Seconds(u64)

Retry only for the given time.

This not an exact value and the effective timeout might be longer than the value given here.

Implementations

impl ConnectOnConflictRetryDelaySecs[src]

pub const ENV_TYPE_NAME: &'static str[src]

The default name of the environment variable for this type. The name of the environment variable is " CONNECT_ON_CONFLICT_RETRY_SECS "

pub fn try_from_env() -> Result<Option<Self>, Error>[src]

Initialize from the environment. Returns None if the value was not found and fails if the value could not be parsed. The name of the environment variable is "NAKADION_ CONNECT_ON_CONFLICT_RETRY_SECS "

pub fn try_from_env_prefixed<T: Into<String>>(
    prefix: T
) -> Result<Option<Self>, Error>
[src]

Initialize from the environment. Returns None if the value was not found and fails if the value could not be parsed. The name of the environment variable is "prefix_ CONNECT_ON_CONFLICT_RETRY_SECS " The underscore and prefix will be omitted if prefix is empty.

pub fn try_from_env_named<T: AsRef<str>>(
    var_name: T
) -> Result<Option<Self>, Error>
[src]

Initialize from the environment. Returns None if the value was not found and fails if the value could not be parsed. The name of the environment variable is var_name.

pub fn try_from_env_type_name() -> Result<Option<Self>, Error>[src]

Initialize from the environment. Returns None if the value was not found and fails if the value could not be parsed. The name of the environment variable is " CONNECT_ON_CONFLICT_RETRY_SECS "

pub fn from_env() -> Result<Self, Error>[src]

Initialize from the environment. Fails if the value was not found or if the value could not be parsed. The name of the environment variable is "NAKADION_ CONNECT_ON_CONFLICT_RETRY_SECS "

pub fn from_env_prefixed<T: Into<String>>(prefix: T) -> Result<Self, Error>[src]

Initialize from the environment. Fails if the value was not found or if the value could not be parsed. The name of the environment variable is "prefix_ CONNECT_ON_CONFLICT_RETRY_SECS " The underscore and prefix will be omitted if prefix is empty.

pub fn from_env_named<T: AsRef<str>>(var_name: T) -> Result<Self, Error>[src]

Initialize from the environment. Fails if the value was not found or if the value could not be parsed. The name of the environment variable is var_name.

pub fn from_env_type_name() -> Result<Self, Error>[src]

Initialize from the environment. Fails if the value was not found or if the value could not be parsed. The name of the environment variable is " CONNECT_ON_CONFLICT_RETRY_SECS "

pub fn from_env_opt() -> Option<Self>[src]

Initialize from the environment. Returns None if the value could not be read for any reason. The name of the environment variable is "NAKADION_ CONNECT_ON_CONFLICT_RETRY_SECS "

pub fn from_env_opt_prefixed<T: Into<String>>(prefix: T) -> Option<Self>[src]

Initialize from the environment. Returns None if the value could not be read for any reason. The name of the environment variable is "prefix_ CONNECT_ON_CONFLICT_RETRY_SECS " The underscore and prefix will be omitted if prefix is empty.

pub fn from_env_opt_named<T: AsRef<str>>(var_name: T) -> Option<Self>[src]

Initialize from the environment. Returns None if the value could not be read for any reason. The name of the environment variable is var_name.

pub fn from_env_opt_type_name() -> Option<Self>[src]

Initialize from the environment. Returns None if the value could not be read for any reason. The name of the environment variable is " CONNECT_ON_CONFLICT_RETRY_SECS "

pub fn into_duration_opt(self) -> Option<Duration>[src]

Trait Implementations

impl Clone for ConnectOnConflictRetryDelaySecs[src]

impl Copy for ConnectOnConflictRetryDelaySecs[src]

impl Debug for ConnectOnConflictRetryDelaySecs[src]

impl Default for ConnectOnConflictRetryDelaySecs[src]

impl<'de> Deserialize<'de> for ConnectOnConflictRetryDelaySecs[src]

impl Display for ConnectOnConflictRetryDelaySecs[src]

impl Eq for ConnectOnConflictRetryDelaySecs[src]

impl FromStr for ConnectOnConflictRetryDelaySecs[src]

type Err = Error

The associated error which can be returned from parsing.

impl PartialEq<ConnectOnConflictRetryDelaySecs> for ConnectOnConflictRetryDelaySecs[src]

impl Serialize for ConnectOnConflictRetryDelaySecs[src]

impl StructuralEq for ConnectOnConflictRetryDelaySecs[src]

impl StructuralPartialEq for ConnectOnConflictRetryDelaySecs[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,