[−][src]Struct nakadion::consumer::StreamMaxUncommittedEvents
The maximum number of uncommitted events that Nakadi will stream before pausing the stream.
Implementations
impl StreamMaxUncommittedEvents
[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 " STREAM_MAX_UNCOMMITTED_EVENTS "
pub fn try_from_env() -> Result<Option<StreamMaxUncommittedEvents>, 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_
STREAM_MAX_UNCOMMITTED_EVENTS
"
pub fn try_from_env_prefixed<T>(
prefix: T
) -> Result<Option<StreamMaxUncommittedEvents>, Error> where
T: Into<String>,
[src]
prefix: T
) -> Result<Option<StreamMaxUncommittedEvents>, Error> where
T: Into<String>,
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
_
STREAM_MAX_UNCOMMITTED_EVENTS
"
The underscore and prefix will be omitted if prefix is empty.
pub fn try_from_env_named<T>(
var_name: T
) -> Result<Option<StreamMaxUncommittedEvents>, Error> where
T: AsRef<str>,
[src]
var_name: T
) -> Result<Option<StreamMaxUncommittedEvents>, Error> where
T: AsRef<str>,
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<StreamMaxUncommittedEvents>, Error>
[src]
) -> Result<Option<StreamMaxUncommittedEvents>, 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 "
STREAM_MAX_UNCOMMITTED_EVENTS
"
pub fn from_env() -> Result<StreamMaxUncommittedEvents, 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_ STREAM_MAX_UNCOMMITTED_EVENTS "
pub fn from_env_prefixed<T>(
prefix: T
) -> Result<StreamMaxUncommittedEvents, Error> where
T: Into<String>,
[src]
prefix: T
) -> Result<StreamMaxUncommittedEvents, Error> where
T: Into<String>,
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
_
STREAM_MAX_UNCOMMITTED_EVENTS
"
The underscore and prefix will be omitted if prefix is empty.
pub fn from_env_named<T>(
var_name: T
) -> Result<StreamMaxUncommittedEvents, Error> where
T: AsRef<str>,
[src]
var_name: T
) -> Result<StreamMaxUncommittedEvents, Error> where
T: AsRef<str>,
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<StreamMaxUncommittedEvents, 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 " STREAM_MAX_UNCOMMITTED_EVENTS "
pub fn from_env_opt() -> Option<StreamMaxUncommittedEvents>
[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_
STREAM_MAX_UNCOMMITTED_EVENTS
"
pub fn from_env_opt_prefixed<T>(prefix: T) -> Option<StreamMaxUncommittedEvents> where
T: Into<String>,
[src]
T: Into<String>,
Initialize from the environment.
Returns None
if the value could not be read for any reason.
The name of the environment variable is "prefix
_
STREAM_MAX_UNCOMMITTED_EVENTS
"
The underscore and prefix will be omitted if prefix is empty.
pub fn from_env_opt_named<T>(var_name: T) -> Option<StreamMaxUncommittedEvents> where
T: AsRef<str>,
[src]
T: AsRef<str>,
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<StreamMaxUncommittedEvents>
[src]
Initialize from the environment.
Returns None
if the value could not be read for any reason.
The name of the environment variable is "
STREAM_MAX_UNCOMMITTED_EVENTS
"
impl StreamMaxUncommittedEvents
[src]
pub fn new<T>(v: T) -> StreamMaxUncommittedEvents where
T: Into<u32>,
[src]
T: Into<u32>,
impl StreamMaxUncommittedEvents
[src]
pub fn into_inner(self) -> u32
[src]
Trait Implementations
impl Clone for StreamMaxUncommittedEvents
[src]
fn clone(&self) -> StreamMaxUncommittedEvents
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StreamMaxUncommittedEvents
[src]
impl Debug for StreamMaxUncommittedEvents
[src]
impl Default for StreamMaxUncommittedEvents
[src]
impl<'de> Deserialize<'de> for StreamMaxUncommittedEvents
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<StreamMaxUncommittedEvents, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<StreamMaxUncommittedEvents, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Display for StreamMaxUncommittedEvents
[src]
impl Eq for StreamMaxUncommittedEvents
[src]
impl From<u32> for StreamMaxUncommittedEvents
[src]
fn from(v: u32) -> StreamMaxUncommittedEvents
[src]
impl FromStr for StreamMaxUncommittedEvents
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(
s: &str
) -> Result<StreamMaxUncommittedEvents, <StreamMaxUncommittedEvents as FromStr>::Err>
[src]
s: &str
) -> Result<StreamMaxUncommittedEvents, <StreamMaxUncommittedEvents as FromStr>::Err>
impl PartialEq<StreamMaxUncommittedEvents> for StreamMaxUncommittedEvents
[src]
fn eq(&self, other: &StreamMaxUncommittedEvents) -> bool
[src]
fn ne(&self, other: &StreamMaxUncommittedEvents) -> bool
[src]
impl Serialize for StreamMaxUncommittedEvents
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Auto Trait Implementations
impl RefUnwindSafe for StreamMaxUncommittedEvents
impl Send for StreamMaxUncommittedEvents
impl Sync for StreamMaxUncommittedEvents
impl Unpin for StreamMaxUncommittedEvents
impl UnwindSafe for StreamMaxUncommittedEvents
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>,