pub enum NodeParamUpdate {
Kernel {
function_name: Option<String>,
config: KernelConfig,
},
Memset {
value: u8,
},
}Expand description
A parameter-only update to a single instantiated node.
Each variant matches the NodeKind it updates; applying an update whose
variant does not match the target node’s kind is rejected. Parameters that
affect topology or resource sizing (buffer counts, transfer sizes) are
intentionally not updatable here — those require re-instantiation.
Variants§
Kernel
New launch configuration for a kernel node. The function name may
change (CUDA permits swapping the kernel function on update) but the
node must already be a NodeKind::KernelLaunch.
Fields
§
config: KernelConfigNew grid/block/shared-memory configuration.
Memset
New fill value for a memset node. The size is fixed at instantiation and may not change.
Implementations§
Source§impl NodeParamUpdate
impl NodeParamUpdate
Sourcepub fn target_tag(&self) -> &'static str
pub fn target_tag(&self) -> &'static str
Returns a short tag describing which kind this update targets.
Trait Implementations§
Source§impl Clone for NodeParamUpdate
impl Clone for NodeParamUpdate
Source§fn clone(&self) -> NodeParamUpdate
fn clone(&self) -> NodeParamUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeParamUpdate
impl Debug for NodeParamUpdate
Source§impl PartialEq for NodeParamUpdate
impl PartialEq for NodeParamUpdate
impl StructuralPartialEq for NodeParamUpdate
Auto Trait Implementations§
impl Freeze for NodeParamUpdate
impl RefUnwindSafe for NodeParamUpdate
impl Send for NodeParamUpdate
impl Sync for NodeParamUpdate
impl Unpin for NodeParamUpdate
impl UnsafeUnpin for NodeParamUpdate
impl UnwindSafe for NodeParamUpdate
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