pub struct AllocReq<T: CudaDtype> {
pub len: usize,
pub reply: Sender<Result<GpuRef<T>, GpuError>>,
}Expand description
Concrete typed allocation request. Held inside a
Box<dyn AllocDispatch> while in flight.
Fields§
§len: usize§reply: Sender<Result<GpuRef<T>, GpuError>>Trait Implementations§
Source§impl<T: CudaDtype> AllocDispatch for AllocReq<T>
impl<T: CudaDtype> AllocDispatch for AllocReq<T>
Auto Trait Implementations§
impl<T> Freeze for AllocReq<T>
impl<T> !RefUnwindSafe for AllocReq<T>
impl<T> Send for AllocReq<T>
impl<T> Sync for AllocReq<T>
impl<T> Unpin for AllocReq<T>
impl<T> UnsafeUnpin for AllocReq<T>
impl<T> !UnwindSafe for AllocReq<T>
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