[][src]Struct nakadion::publisher::PublisherConfig

pub struct PublisherConfig {
    pub timeout_millis: Option<PublishTimeoutMillis>,
    pub attempt_timeout_millis: Option<PublishAttemptTimeoutMillis>,
    pub initial_retry_interval_millis: Option<PublishInitialRetryIntervalMillis>,
    pub retry_interval_multiplier: Option<PublishRetryIntervalMultiplier>,
    pub max_retry_interval_millis: Option<PublishMaxRetryIntervalMillis>,
    pub retry_on_auth_error: Option<PublishRetryOnAuthError>,
    pub partial_failure_strategy: Option<SubmissionFailureStrategy>,
}

Configuration for a publisher

Fields

timeout_millis: Option<PublishTimeoutMillis>

Timeout for a complete publishing including potential retries

attempt_timeout_millis: Option<PublishAttemptTimeoutMillis>

Timeout for a single publish request with Nakadi

initial_retry_interval_millis: Option<PublishInitialRetryIntervalMillis>

Interval length before the first retry attempt

retry_interval_multiplier: Option<PublishRetryIntervalMultiplier>

Multiplier for the length of of the next retry interval

max_retry_interval_millis: Option<PublishMaxRetryIntervalMillis>

Maximum length of an interval before a retry

retry_on_auth_error: Option<PublishRetryOnAuthError>

Retry on authentication/authorization errors if true

partial_failure_strategy: Option<SubmissionFailureStrategy>

Strategy for handling partial failures

Implementations

impl PublisherConfig[src]

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

Initializes all fields from environment variables prefixed with "NAKADION_"

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

Initializes all fields from environment variables prefixed with "[prefix]_" The underscore is omitted if prefix is empty

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

Initializes all fields from environment variables without any prefix

pub fn fill_from_env(&mut self) -> Result<(), Error>[src]

Updates all not yet set fields from environment variables prefixed with "NAKADION_"

pub fn fill_from_env_prefixed<T: AsRef<str>>(
    &mut self,
    prefix: T
) -> Result<(), Error>
[src]

Updates all not yet set fields from environment variables prefixed with "[prefix]_" The underscore is omitted if prefix is empty

pub fn fill_from_env_type_names(&mut self) -> Result<(), Error>[src]

Updates all not yet set fields from environment variables without any prefix

pub fn timeout_millis<T: Into<PublishTimeoutMillis>>(self, v: T) -> Self[src]

Timeout for a complete publishing including potential retries

pub fn attempt_timeout_millis<T: Into<PublishAttemptTimeoutMillis>>(
    self,
    v: T
) -> Self
[src]

Timeout for a single publish request with Nakadi

pub fn initial_retry_interval_millis<T: Into<PublishInitialRetryIntervalMillis>>(
    self,
    v: T
) -> Self
[src]

Interval length before the first retry attempt

pub fn retry_interval_multiplier<T: Into<PublishRetryIntervalMultiplier>>(
    self,
    v: T
) -> Self
[src]

Multiplier for the length of of the next retry interval

pub fn max_retry_interval_millis<T: Into<PublishMaxRetryIntervalMillis>>(
    self,
    v: T
) -> Self
[src]

Maximum length of an interval before a retry

pub fn retry_on_auth_error<T: Into<PublishRetryOnAuthError>>(self, v: T) -> Self[src]

Retry on authentication/authorization errors if true

pub fn partial_failure_strategy<T: Into<SubmissionFailureStrategy>>(
    self,
    v: T
) -> Self
[src]

Strategy for handling partial failures

Trait Implementations

impl Clone for PublisherConfig[src]

impl Debug for PublisherConfig[src]

impl Default for PublisherConfig[src]

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

impl Serialize for PublisherConfig[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<T> From<T> for T[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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>,