pub struct CudaContext {
pub handle: *mut c_void,
pub device_id: u32,
pub flags: CudaContextFlags,
pub created_at: Instant,
pub streams: Vec<CudaStream>,
}Expand description
CUDA context for managing device state
Fields§
§handle: *mut c_voidContext handle (simulated)
device_id: u32Device ID
flags: CudaContextFlagsContext flags
created_at: InstantCreation time
streams: Vec<CudaStream>Active streams
Auto Trait Implementations§
impl Freeze for CudaContext
impl RefUnwindSafe for CudaContext
impl !Send for CudaContext
impl !Sync for CudaContext
impl Unpin for CudaContext
impl UnsafeUnpin for CudaContext
impl UnwindSafe for CudaContext
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more