[−][src]Struct nakadion::components::connector::ConnectConfig
Parameters to configure the Connector
Fields
stream_params: StreamParameters
abort_on_auth_error: Option<ConnectAbortOnAuthError>
abort_connect_on_subscription_not_found: Option<ConnectAbortOnSubscriptionNotFound>
If true
abort the consumer when a subscription does not exist when connection to a stream.
timeout_secs: Option<ConnectTimeout>
The maximum time for until a connection to a stream has to be established.
Default is to retry indefinitely
max_retry_delay_secs: Option<ConnectMaxRetryDelaySecs>
The maximum retry delay between failed attempts to connect to a stream.
attempt_timeout_secs: Option<ConnectAttemptTimeoutSecs>
The timeout for a request made to Nakadi to connect to a stream.
Methods
impl ConnectConfig
[src]
pub fn from_env() -> Result<Self, Error>
[src]
pub fn from_env_prefixed<T: AsRef<str>>(prefix: T) -> Result<Self, Error>
[src]
pub fn update_from_env(&mut self) -> Result<(), Error>
[src]
pub fn update_from_env_prefixed<T: AsRef<str>>(
&mut self,
prefix: T
) -> Result<(), Error>
[src]
&mut self,
prefix: T
) -> Result<(), Error>
pub fn apply_defaults(&mut self)
[src]
pub fn stream_params<T: Into<StreamParameters>>(self, v: T) -> Self
[src]
pub fn abort_on_auth_error<T: Into<ConnectAbortOnAuthError>>(self, v: T) -> Self
[src]
pub fn abort_connect_on_subscription_not_found<T: Into<ConnectAbortOnSubscriptionNotFound>>(
self,
v: T
) -> Self
[src]
self,
v: T
) -> Self
pub fn timeout_secs<T: Into<ConnectTimeout>>(self, v: T) -> Self
[src]
pub fn max_retry_delay_secs<T: Into<ConnectMaxRetryDelaySecs>>(
self,
v: T
) -> Self
[src]
self,
v: T
) -> Self
pub fn attempt_timeout_secs<T: Into<ConnectAttemptTimeoutSecs>>(
self,
v: T
) -> Self
[src]
self,
v: T
) -> Self
pub fn configure_stream_parameters<F>(self, f: F) -> Self where
F: FnMut(StreamParameters) -> StreamParameters,
[src]
F: FnMut(StreamParameters) -> StreamParameters,
Modify the current StreamParameters
with a closure.
pub fn try_configure_stream_parameters<F>(self, f: F) -> Result<Self, Error> where
F: FnMut(StreamParameters) -> Result<StreamParameters, Error>,
[src]
F: FnMut(StreamParameters) -> Result<StreamParameters, Error>,
Modify the current StreamParameters
with a closure.
Trait Implementations
impl Clone for ConnectConfig
[src]
fn clone(&self) -> ConnectConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ConnectConfig
[src]
impl Default for ConnectConfig
[src]
fn default() -> ConnectConfig
[src]
impl<'de> Deserialize<'de> for ConnectConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for ConnectConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConnectConfig
impl Send for ConnectConfig
impl Sync for ConnectConfig
impl Unpin for ConnectConfig
impl UnwindSafe for ConnectConfig
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>,