pub struct Executor { /* private fields */ }Implementations§
Source§impl Executor
impl Executor
pub fn new() -> Self
Sourcepub fn with_cache(cache: CacheManager) -> Self
pub fn with_cache(cache: CacheManager) -> Self
Create a new executor with caching enabled
Sourcepub fn set_cache(&mut self, cache: CacheManager)
pub fn set_cache(&mut self, cache: CacheManager)
Enable caching for this executor
Sourcepub fn cache(&self) -> Option<&CacheManager>
pub fn cache(&self) -> Option<&CacheManager>
Get the cache manager (if enabled)
Sourcepub fn from_graph_def(def: &GraphDef) -> Result<Self>
pub fn from_graph_def(def: &GraphDef) -> Result<Self>
Build executor from graph definition
Sourcepub fn register_node(&mut self, node: Box<dyn Node>)
pub fn register_node(&mut self, node: Box<dyn Node>)
Register a node with the executor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Executor
impl !RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl !UnwindSafe for Executor
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