Skip to main content

ProgressCallback

Type Alias ProgressCallback 

Source
pub type ProgressCallback = Box<dyn FnMut(Progress) + Send>;
Available on (crate features blocking or tokio or serial) and (crate features blocking or tokio) only.
Expand description

Closure type the adapters invoke after each acknowledged WRITE packet. Boxed for object safety; Send so async callers can ship the callback into spawn_blocking.

Aliased Typeยง

pub struct ProgressCallback(/* private fields */);