Struct OnProgressChunkWriter
#[must_use]
pub struct OnProgressChunkWriter<'w, W, F> { /* private fields */ }
A new writer that triggers a callback for each block written to the inner writer.
Trait Implementations
impl<'w, W, F> ChunksWriter for OnProgressChunkWriter<'w, W, F>
where
W: 'w + ChunksWriter,
F: FnMut(f64),
fn total_chunks_count(&self) -> usizefn write_chunk(&mut self, index_in_header_increasing_y: usize, chunk: Chunk) -> UnitResult
impl<'w, W: Debug, F: Debug> Debug for OnProgressChunkWriter<'w, W, F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<'w, W, F> !UnwindSafe for OnProgressChunkWriter<'w, W, F>
impl<'w, W, F> Freeze for OnProgressChunkWriter<'w, W, F>
where
&'w mut W: Freeze,
F: Freeze,
impl<'w, W, F> RefUnwindSafe for OnProgressChunkWriter<'w, W, F>
where
&'w mut W: RefUnwindSafe,
F: RefUnwindSafe,
impl<'w, W, F> Send for OnProgressChunkWriter<'w, W, F>
where
&'w mut W: Send,
F: Send,
impl<'w, W, F> Sync for OnProgressChunkWriter<'w, W, F>
where
&'w mut W: Sync,
F: Sync,
impl<'w, W, F> Unpin for OnProgressChunkWriter<'w, W, F>
where
&'w mut W: Unpin,
F: Unpin,
impl<'w, W, F> UnsafeUnpin for OnProgressChunkWriter<'w, W, F>
where
&'w mut W: UnsafeUnpin,
F: UnsafeUnpin,
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for OnProgressChunkWriter<'w, W, F>
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for OnProgressChunkWriter<'w, W, F>
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for OnProgressChunkWriter<'w, W, F>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for OnProgressChunkWriter<'w, W, F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for OnProgressChunkWriter<'w, W, F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for OnProgressChunkWriter<'w, W, F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Pointable for OnProgressChunkWriter<'w, W, F>
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> Read<Exclusive, BecauseExclusive> for OnProgressChunkWriter<'w, W, F>
where
T: ?Sized,
impl<T, U> Into<U> for OnProgressChunkWriter<'w, W, F>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for OnProgressChunkWriter<'w, W, F>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for OnProgressChunkWriter<'w, W, F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>