Skip to main content

ItemLazy

Trait ItemLazy 

pub trait ItemLazy: Sized + Send {
    // Required method
    fn sync(self) -> Result<Self, ExecutionError>;
}
Expand description

Items that are lazy are not ready to be processed by metrics.

We want to sync them on a different thread to avoid blocking training.

Required Methods§

fn sync(self) -> Result<Self, ExecutionError>

Sync the item.

§Errors

Returns an ExecutionError when the item’s pending work cannot be dispatched, e.g. on a device that is poisoned.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl ItemLazy for ()

Implementors§