pub struct ForwardEnv<'a> {
pub catalog: &'a NodeCatalog,
pub cache: &'a dyn CacheStore,
pub event_bus: &'a Arc<EventBus>,
pub data_store: Option<&'a Arc<dyn DataStore>>,
pub driver: Option<&'a EffectDriver>,
}Expand description
What a forward pass runs against, besides the graph and the data.
A struct rather than six parameters, for the same reason as
RunContext: every strategy takes exactly this set, and a caller
forgetting one of six positional arguments is a bug the compiler cannot
name.
Fields§
§catalog: &'a NodeCatalogImplementations and trained states for every node in the graph.
cache: &'a dyn CacheStoreOutput cache consulted and filled during the pass.
event_bus: &'a Arc<EventBus>Bus the pass emits its node events on.
data_store: Option<&'a Arc<dyn DataStore>>Row source Batched reads from; the other strategies ignore it.
driver: Option<&'a EffectDriver>Performs and journals step effects; a graph without steps ignores
it, which is why it is an Option and not a requirement.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ForwardEnv<'a>
impl<'a> !UnwindSafe for ForwardEnv<'a>
impl<'a> Freeze for ForwardEnv<'a>
impl<'a> Send for ForwardEnv<'a>
impl<'a> Sync for ForwardEnv<'a>
impl<'a> Unpin for ForwardEnv<'a>
impl<'a> UnsafeUnpin for ForwardEnv<'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