Trait rust_cuda::kernel::CudaKernelParameter
source · pub trait CudaKernelParameter: Sealed {
type SyncHostType;
type AsyncHostType<'stream, 'b>
where Self: 'b;
type DeviceType<'b>
where Self: 'b;
// Required method
fn with_new_async<'stream, 'b, O, E: From<CudaError>>(
param: Self::SyncHostType,
stream: Stream<'stream>,
inner: impl FnOnce(Self::AsyncHostType<'stream, 'b>) -> Result<O, E>,
) -> Result<O, E>
where Self: 'b;
}
Required Associated Types§
type SyncHostType
Available on crate feature
host
only.type AsyncHostType<'stream, 'b> where Self: 'b
Available on crate feature
host
only.type DeviceType<'b> where Self: 'b
Available on crate feature
device
only.Required Methods§
fn with_new_async<'stream, 'b, O, E: From<CudaError>>(
param: Self::SyncHostType,
stream: Stream<'stream>,
inner: impl FnOnce(Self::AsyncHostType<'stream, 'b>) -> Result<O, E>,
) -> Result<O, E>where
Self: 'b,
Available on crate feature
host
only.Object Safety§
This trait is not object safe.