pub struct NatsInputConfig {
pub connection_config: ConnectOptions,
pub stream_name: String,
pub inactivity_timeout: Option<ConfigDuration>,
pub retry_interval: Option<ConfigDuration>,
pub consumer_config: ConsumerConfig,
}Fields§
§connection_config: ConnectOptions§stream_name: String§inactivity_timeout: Option<ConfigDuration>Maximum time to wait for the next message before running a
stream/server health check, for example 60s. Must be at least one
second. Unset selects the default, DEFAULT_INACTIVITY_TIMEOUT.
retry_interval: Option<ConfigDuration>Delay between automatic reconnect attempts while in retry mode, for
example 5s. Must be at least one second. Unset selects
the default, DEFAULT_RETRY_INTERVAL.
consumer_config: ConsumerConfigImplementations§
Source§impl NatsInputConfig
impl NatsInputConfig
Sourcepub fn inactivity_timeout(&self) -> ConfigDuration
pub fn inactivity_timeout(&self) -> ConfigDuration
The inactivity timeout in effect, or DEFAULT_INACTIVITY_TIMEOUT.
Sourcepub fn retry_interval(&self) -> ConfigDuration
pub fn retry_interval(&self) -> ConfigDuration
The reconnect delay in effect, or DEFAULT_RETRY_INTERVAL.
Trait Implementations§
Source§impl Clone for NatsInputConfig
impl Clone for NatsInputConfig
Source§impl Debug for NatsInputConfig
impl Debug for NatsInputConfig
Source§impl<'de> Deserialize<'de> for NatsInputConfig
impl<'de> Deserialize<'de> for NatsInputConfig
Source§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
impl Eq for NatsInputConfig
Source§impl PartialEq for NatsInputConfig
impl PartialEq for NatsInputConfig
Source§impl Serialize for NatsInputConfig
impl Serialize for NatsInputConfig
impl StructuralPartialEq for NatsInputConfig
Auto Trait Implementations§
impl Freeze for NatsInputConfig
impl RefUnwindSafe for NatsInputConfig
impl Send for NatsInputConfig
impl Sync for NatsInputConfig
impl Unpin for NatsInputConfig
impl UnsafeUnpin for NatsInputConfig
impl UnwindSafe for NatsInputConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.