[−][src]Struct nakadion::publisher::PublishAttemptTimeoutMillis
The time a publish attempt for an events batch may take.
Default is 31 seconds
Implementations
impl PublishAttemptTimeoutMillis
[src]
impl PublishAttemptTimeoutMillis
[src]
pub fn into_inner(self) -> u64
[src]
impl PublishAttemptTimeoutMillis
[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 " PUBLISH_ATTEMPT_TIMEOUT_MILLIS "
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_
PUBLISH_ATTEMPT_TIMEOUT_MILLIS
"
pub fn try_from_env_prefixed<T: Into<String>>(
prefix: T
) -> Result<Option<Self>, Error>
[src]
prefix: T
) -> Result<Option<Self>, Error>
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
_
PUBLISH_ATTEMPT_TIMEOUT_MILLIS
"
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]
var_name: T
) -> Result<Option<Self>, Error>
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 "
PUBLISH_ATTEMPT_TIMEOUT_MILLIS
"
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_ PUBLISH_ATTEMPT_TIMEOUT_MILLIS "
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
_
PUBLISH_ATTEMPT_TIMEOUT_MILLIS
"
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 " PUBLISH_ATTEMPT_TIMEOUT_MILLIS "
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_
PUBLISH_ATTEMPT_TIMEOUT_MILLIS
"
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
_
PUBLISH_ATTEMPT_TIMEOUT_MILLIS
"
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 "
PUBLISH_ATTEMPT_TIMEOUT_MILLIS
"
pub fn into_duration(self) -> Duration
[src]
Trait Implementations
impl Clone for PublishAttemptTimeoutMillis
[src]
fn clone(&self) -> PublishAttemptTimeoutMillis
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PublishAttemptTimeoutMillis
[src]
impl Debug for PublishAttemptTimeoutMillis
[src]
impl Default for PublishAttemptTimeoutMillis
[src]
impl<'de> Deserialize<'de> for PublishAttemptTimeoutMillis
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for PublishAttemptTimeoutMillis
[src]
impl Eq for PublishAttemptTimeoutMillis
[src]
impl From<PublishAttemptTimeoutMillis> for u64
[src]
fn from(v: PublishAttemptTimeoutMillis) -> u64
[src]
impl From<PublishAttemptTimeoutMillis> for Duration
[src]
fn from(v: PublishAttemptTimeoutMillis) -> Duration
[src]
impl From<u64> for PublishAttemptTimeoutMillis
[src]
fn from(v: u64) -> PublishAttemptTimeoutMillis
[src]
impl FromStr for PublishAttemptTimeoutMillis
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl PartialEq<PublishAttemptTimeoutMillis> for PublishAttemptTimeoutMillis
[src]
fn eq(&self, other: &PublishAttemptTimeoutMillis) -> bool
[src]
fn ne(&self, other: &PublishAttemptTimeoutMillis) -> bool
[src]
impl Serialize for PublishAttemptTimeoutMillis
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for PublishAttemptTimeoutMillis
[src]
impl StructuralPartialEq for PublishAttemptTimeoutMillis
[src]
Auto Trait Implementations
impl RefUnwindSafe for PublishAttemptTimeoutMillis
impl Send for PublishAttemptTimeoutMillis
impl Sync for PublishAttemptTimeoutMillis
impl Unpin for PublishAttemptTimeoutMillis
impl UnwindSafe for PublishAttemptTimeoutMillis
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: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,