#[non_exhaustive]pub enum MemoryQueuePolicy {
Drop,
Backpressure,
}Expand description
Queue behavior when there is no capacity for another complete payload.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Drop
Reject the incoming payload and record its byte count as dropped.
Backpressure
Block the producer until capacity, close, or abort changes the state.
Trait Implementations§
Source§impl Clone for MemoryQueuePolicy
impl Clone for MemoryQueuePolicy
impl Copy for MemoryQueuePolicy
Source§impl Debug for MemoryQueuePolicy
impl Debug for MemoryQueuePolicy
impl Eq for MemoryQueuePolicy
Source§impl PartialEq for MemoryQueuePolicy
impl PartialEq for MemoryQueuePolicy
impl StructuralPartialEq for MemoryQueuePolicy
Auto Trait Implementations§
impl Freeze for MemoryQueuePolicy
impl RefUnwindSafe for MemoryQueuePolicy
impl Send for MemoryQueuePolicy
impl Sync for MemoryQueuePolicy
impl Unpin for MemoryQueuePolicy
impl UnsafeUnpin for MemoryQueuePolicy
impl UnwindSafe for MemoryQueuePolicy
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