pub struct UpdateResult {
pub result: c_int,
pub error_node: Option<GraphNode>,
pub error_from_node: Option<GraphNode>,
}Expand description
Outcome of GraphExec::update. Inspect result
against the constants in
baracuda_cuda_sys::types::CUgraphExecUpdateResult —
SUCCESS (0) means the executable graph was patched in place.
Fields§
§result: c_int§error_node: Option<GraphNode>Node in the new template that triggered the failure, if any.
error_from_node: Option<GraphNode>Corresponding node in the old (already-instantiated) template.
Implementations§
Source§impl UpdateResult
impl UpdateResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
true iff CUDA accepted the update.
Trait Implementations§
Source§impl Clone for UpdateResult
impl Clone for UpdateResult
Source§fn clone(&self) -> UpdateResult
fn clone(&self) -> UpdateResult
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 moreAuto Trait Implementations§
impl Freeze for UpdateResult
impl RefUnwindSafe for UpdateResult
impl !Send for UpdateResult
impl !Sync for UpdateResult
impl Unpin for UpdateResult
impl UnsafeUnpin for UpdateResult
impl UnwindSafe for UpdateResult
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