pub enum ModuleMsg {
LoadCubin {
bytes: Vec<u8>,
reply: Sender<Result<ModuleHandle, GpuError>>,
},
LoadPtx {
src: String,
reply: Sender<Result<ModuleHandle, GpuError>>,
},
GetFunction {
handle: ModuleHandle,
name: String,
reply: Sender<Result<FunctionHandle, GpuError>>,
},
Launch {
function: FunctionHandle,
cfg: LaunchConfig,
args: Vec<KernelArg>,
reply: Sender<Result<(), GpuError>>,
},
LaunchCooperative {
function: FunctionHandle,
cfg: LaunchConfig,
args: Vec<KernelArg>,
reply: Sender<Result<(), GpuError>>,
},
Unload {
handle: ModuleHandle,
reply: Sender<Result<(), GpuError>>,
},
}Variants§
LoadCubin
LoadPtx
GetFunction
Launch
LaunchCooperative
Unload
Auto Trait Implementations§
impl Freeze for ModuleMsg
impl !RefUnwindSafe for ModuleMsg
impl Send for ModuleMsg
impl Sync for ModuleMsg
impl Unpin for ModuleMsg
impl UnsafeUnpin for ModuleMsg
impl !UnwindSafe for ModuleMsg
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