Struct async_nats::jetstream::stream::ConsumerLimits
source · pub struct ConsumerLimits {
pub inactive_threshold: Duration,
pub max_ack_pending: i64,
}
Fields§
§inactive_threshold: Duration
Sets the maximum crate::jetstream::consumer::Config::inactive_threshold that can be set on the consumer.
max_ack_pending: i64
Sets the maximum crate::jetstream::consumer::Config::max_ack_pending that can be set on the consumer.
Trait Implementations§
source§impl Clone for ConsumerLimits
impl Clone for ConsumerLimits
source§fn clone(&self) -> ConsumerLimits
fn clone(&self) -> ConsumerLimits
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConsumerLimits
impl Debug for ConsumerLimits
source§impl Default for ConsumerLimits
impl Default for ConsumerLimits
source§fn default() -> ConsumerLimits
fn default() -> ConsumerLimits
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ConsumerLimits
impl<'de> Deserialize<'de> for ConsumerLimits
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
source§impl PartialEq for ConsumerLimits
impl PartialEq for ConsumerLimits
source§impl Serialize for ConsumerLimits
impl Serialize for ConsumerLimits
impl Eq for ConsumerLimits
impl StructuralPartialEq for ConsumerLimits
Auto Trait Implementations§
impl Freeze for ConsumerLimits
impl RefUnwindSafe for ConsumerLimits
impl Send for ConsumerLimits
impl Sync for ConsumerLimits
impl Unpin for ConsumerLimits
impl UnwindSafe for ConsumerLimits
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)