pub struct ProgressFn(pub Arc<dyn Fn(AgentProgress) + Send + Sync>);Expand description
Receives AgentProgress; called from the backend’s output reader, so keep it quick.
Tuple Fields§
§0: Arc<dyn Fn(AgentProgress) + Send + Sync>Implementations§
Source§impl ProgressFn
impl ProgressFn
Sourcepub fn report(&self, progress: AgentProgress)
pub fn report(&self, progress: AgentProgress)
Reports progress.
Trait Implementations§
Source§impl Clone for ProgressFn
impl Clone for ProgressFn
Auto Trait Implementations§
impl !RefUnwindSafe for ProgressFn
impl !UnwindSafe for ProgressFn
impl Freeze for ProgressFn
impl Send for ProgressFn
impl Sync for ProgressFn
impl Unpin for ProgressFn
impl UnsafeUnpin for ProgressFn
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