[−][src]Struct nakadion::publisher::PublisherConfig
Configuration for a publisher
Fields
timeout: Option<PublishTimeout>
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<PartialFailureStrategy>
Strategy for handling partial failures
Methods
impl PublisherConfig
[src]
pub fn try_from_env() -> Result<Self, Error>
[src]
Creates a new Config
from the environment where all the env vars
are prefixed with NAKADION_
.
pub fn try_from_env_prefixed<T: AsRef<str>>(prefix: T) -> Result<Self, Error>
[src]
Creates a new Config
from the environment where all the env vars
are prefixed with <prefix>_
.
pub fn fill_from_env(&mut self) -> Result<(), Error>
[src]
Sets all values that have not been set so far from the environment.
All the env vars are prefixed with NAKADION_
.
pub fn fill_from_env_prefixed<T: AsRef<str>>(
&mut self,
prefix: T
) -> Result<(), Error>
[src]
&mut self,
prefix: T
) -> Result<(), Error>
Sets all values that have not been set so far from the environment.
All the env vars are prefixed with <prefix>_
.
pub fn timeout<T: Into<PublishTimeout>>(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]
self,
v: T
) -> Self
Timeout for a single publish request with Nakadi
pub fn initial_retry_interval_millis<T: Into<PublishInitialRetryIntervalMillis>>(
self,
v: T
) -> Self
[src]
self,
v: T
) -> Self
Interval length before the first retry attempt
pub fn retry_interval_multiplier<T: Into<PublishRetryIntervalMultiplier>>(
self,
v: T
) -> Self
[src]
self,
v: T
) -> Self
Multiplier for the length of of the next retry interval
pub fn max_retry_interval_millis<T: Into<PublishMaxRetryIntervalMillis>>(
self,
v: T
) -> Self
[src]
self,
v: T
) -> Self
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<PartialFailureStrategy>>(
self,
v: T
) -> Self
[src]
self,
v: T
) -> Self
Strategy for handling partial failures
Trait Implementations
impl Clone for PublisherConfig
[src]
fn clone(&self) -> PublisherConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PublisherConfig
[src]
impl Default for PublisherConfig
[src]
fn default() -> PublisherConfig
[src]
impl<'de> Deserialize<'de> for PublisherConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for PublisherConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for PublisherConfig
impl Send for PublisherConfig
impl Sync for PublisherConfig
impl Unpin for PublisherConfig
impl UnwindSafe for PublisherConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,