pub enum CleanupMode {
OnChunkRead,
OnNewChunk,
Never,
}Expand description
This way you can control when chunk’s memory deallocation happens. In addition, some operations may cause deallocations as well.
Variants§
OnChunkRead
Cleanup will be called when chunk fully read.
In this mode memory will be freed ASAP - right in the end of reader consumption session.
!! Not allowed for spmc !!
OnNewChunk
Cleanup will be called when new chunk created.
Never
Cleanup will never be called. You should call EventQueue::cleanup manually.
Trait Implementations§
Source§impl PartialEq for CleanupMode
impl PartialEq for CleanupMode
impl StructuralPartialEq for CleanupMode
Auto Trait Implementations§
impl Freeze for CleanupMode
impl RefUnwindSafe for CleanupMode
impl Send for CleanupMode
impl Sync for CleanupMode
impl Unpin for CleanupMode
impl UnwindSafe for CleanupMode
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