Enum rc_event_queue::CleanupMode [−][src]
pub enum CleanupMode {
OnChunkRead,
OnNewChunk,
Never,
}Expand description
This way you can control when chunk’s memory deallocation happens.
Variants
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 !!
Cleanup will be called when new chunk created.
Cleanup will never be called. You should call [EventQueue::cleanup] manually.