pub struct ComputationGraphEntry {
pub name: &'static str,
pub constructor: fn() -> ComputationGraphRegistration,
}Expand description
Computation graph entry emitted by #[computation_graph] for the
reactor-triggered (split) form. The package!() shell walks
inventory::iter::<ComputationGraphEntry> to build the metadata
returned by get_graph_metadata and to dispatch
execution in execute_graph. At most one entry is expected per cdylib;
the shell’s body errors if it finds more than one.
Fields§
§name: &'static str§constructor: fn() -> ComputationGraphRegistrationTrait Implementations§
impl Collect for ComputationGraphEntry
Auto Trait Implementations§
impl Freeze for ComputationGraphEntry
impl RefUnwindSafe for ComputationGraphEntry
impl Send for ComputationGraphEntry
impl Sync for ComputationGraphEntry
impl Unpin for ComputationGraphEntry
impl UnsafeUnpin for ComputationGraphEntry
impl UnwindSafe for ComputationGraphEntry
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