pub struct CowIter<'a> { /* private fields */ }
Expand description
COW (copy-on-write) AUX area iterator.
Same as COW record iterator, but for AUX area.
Implementations§
Source§impl<'a> CowIter<'a>
impl<'a> CowIter<'a>
Sourcepub fn next<F, R>(
&mut self,
f: F,
max_chunk_len: Option<NonZeroUsize>,
) -> Option<R>
pub fn next<F, R>( &mut self, f: F, max_chunk_len: Option<NonZeroUsize>, ) -> Option<R>
Advances the iterator and returns the next value.
max_chunk_len
specifies the maximum length of a chunk
that can be produced at one time, unlimited if None
.
If AUX area tracing is in happening, operations in the closure should be quick and cheap. Slow iteration of raw bytes may throttle kernel threads from outputting new data to the AUX area, and heavyd operations may affect the performance of the target process.
Sourcepub fn into_async(self) -> Result<AsyncCowIter<'a>>
pub fn into_async(self) -> Result<AsyncCowIter<'a>>
Creates an asynchronous iterator.
Auto Trait Implementations§
impl<'a> Freeze for CowIter<'a>
impl<'a> RefUnwindSafe for CowIter<'a>
impl<'a> Send for CowIter<'a>
impl<'a> Sync for CowIter<'a>
impl<'a> Unpin for CowIter<'a>
impl<'a> UnwindSafe for CowIter<'a>
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