pub struct RawGraph {
pub handle: cudaGraph_t,
pub context: Arc<Context>,
pub retained: RetainedResources,
pub id: GraphId,
}Expand description
Raw ownership of a graph, its context, and every graph-retained resource.
Keep this value alive until the native handle is destroyed, or re-adopt it with Graph::from_raw.
Bind its context before native use and complete graph work before releasing these owners.
Fields§
§handle: cudaGraph_tNative graph handle.
context: Arc<Context>Context the graph belongs to.
retained: RetainedResourcesAllocations, modules, and events the graph’s nodes depend on.
id: GraphIdIdentity that the graph’s nodes record.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RawGraph
impl !UnwindSafe for RawGraph
impl Forget for RawGraph
impl Freeze for RawGraph
impl Move for RawGraph
impl Unpin for RawGraph
impl UnsafeUnpin for RawGraph
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