pub enum RawCollectionOptions {
Bounded {
max_bytes: NumBytes,
overflow_behavior: CollectionOverflowBehavior,
},
TrustedUnbounded,
}Expand description
Options for collecting raw output bytes into memory.
Variants§
Bounded
Retain at most max_bytes bytes in memory.
Fields
§
overflow_behavior: CollectionOverflowBehaviorWhich retained bytes to keep when more output is observed.
TrustedUnbounded
Retain all observed bytes in memory without a total output cap.
Use only when the output source and its output volume are trusted.
Trait Implementations§
Source§impl Clone for RawCollectionOptions
impl Clone for RawCollectionOptions
Source§fn clone(&self) -> RawCollectionOptions
fn clone(&self) -> RawCollectionOptions
Returns a duplicate 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 RawCollectionOptions
impl Debug for RawCollectionOptions
Source§impl PartialEq for RawCollectionOptions
impl PartialEq for RawCollectionOptions
impl Copy for RawCollectionOptions
impl Eq for RawCollectionOptions
impl StructuralPartialEq for RawCollectionOptions
Auto Trait Implementations§
impl Freeze for RawCollectionOptions
impl RefUnwindSafe for RawCollectionOptions
impl Send for RawCollectionOptions
impl Sync for RawCollectionOptions
impl Unpin for RawCollectionOptions
impl UnsafeUnpin for RawCollectionOptions
impl UnwindSafe for RawCollectionOptions
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