pub struct RawProgram {
pub handle: nvrtcProgram,
pub cancel_flag: Option<Arc<AtomicBool>>,
}Expand description
Raw ownership of an NVRTC program, including the cancellation flag its flow callback may still read.
Keep cancel_flag alive until the handle is destroyed or re-adopted with Program::from_raw.
Fields§
§handle: nvrtcProgramNative program handle.
cancel_flag: Option<Arc<AtomicBool>>Flag passed to a flow callback that is still registered on the handle, if any.
Trait Implementations§
Auto Trait Implementations§
impl !Send for RawProgram
impl !Sync for RawProgram
impl Forget for RawProgram
impl Freeze for RawProgram
impl Move for RawProgram
impl RefUnwindSafe for RawProgram
impl Unpin for RawProgram
impl UnsafeUnpin for RawProgram
impl UnwindSafe for RawProgram
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