pub enum ManagedMsg {
AllocateManagedF32 {
len: usize,
flags: ManagedFlags,
reply: Sender<Result<ManagedRef<f32>, GpuError>>,
},
PrefetchF32 {
mem: ManagedRef<f32>,
target: PrefetchTarget,
reply: Sender<Result<(), GpuError>>,
},
AdviseF32 {
mem: ManagedRef<f32>,
advice: MemAdvice,
reply: Sender<Result<(), GpuError>>,
},
Stats {
reply: Sender<ManagedStats>,
},
}Variants§
AllocateManagedF32
PrefetchF32
Prefetch a managed allocation to a specific target. The
mem argument is a clone of the ManagedRef returned from
allocation.
AdviseF32
Apply a memory advisory hint to a managed allocation.
Wraps cuMemAdvise_v2.
Stats
Fields
§
reply: Sender<ManagedStats>Auto Trait Implementations§
impl Freeze for ManagedMsg
impl !RefUnwindSafe for ManagedMsg
impl Send for ManagedMsg
impl Sync for ManagedMsg
impl Unpin for ManagedMsg
impl UnsafeUnpin for ManagedMsg
impl !UnwindSafe for ManagedMsg
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