pub struct DeliveryLimits {
pub max_event_items: usize,
pub max_event_bytes: usize,
}Expand description
Validated event-queue capacities for transaction_delivery.
Fields§
§max_event_items: usizeMaximum queued event items (nonzero).
max_event_bytes: usizeMaximum queued event payload bytes (nonzero).
Implementations§
Source§impl DeliveryLimits
impl DeliveryLimits
Sourcepub fn try_new(
max_event_items: usize,
max_event_bytes: usize,
) -> Result<DeliveryLimits, DeliveryConfigError>
pub fn try_new( max_event_items: usize, max_event_bytes: usize, ) -> Result<DeliveryLimits, DeliveryConfigError>
Construct limits; returns an error when either capacity is zero.
Trait Implementations§
Source§impl Clone for DeliveryLimits
impl Clone for DeliveryLimits
Source§fn clone(&self) -> DeliveryLimits
fn clone(&self) -> DeliveryLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeliveryLimits
Source§impl Debug for DeliveryLimits
impl Debug for DeliveryLimits
impl Eq for DeliveryLimits
Source§impl PartialEq for DeliveryLimits
impl PartialEq for DeliveryLimits
impl StructuralPartialEq for DeliveryLimits
Auto Trait Implementations§
impl Freeze for DeliveryLimits
impl RefUnwindSafe for DeliveryLimits
impl Send for DeliveryLimits
impl Sync for DeliveryLimits
impl Unpin for DeliveryLimits
impl UnsafeUnpin for DeliveryLimits
impl UnwindSafe for DeliveryLimits
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.