pub struct CuHostMemoryPool<T> { /* private fields */ }
Expand description
A pool of host memory buffers.
Implementations§
Trait Implementations§
Source§impl<T: ArrayLike> CuPool<T> for CuHostMemoryPool<T>
impl<T: ArrayLike> CuPool<T> for CuHostMemoryPool<T>
Source§impl<T: ArrayLike> PoolMonitor for CuHostMemoryPool<T>
impl<T: ArrayLike> PoolMonitor for CuHostMemoryPool<T>
Source§fn id(&self) -> ArrayString<64>
fn id(&self) -> ArrayString<64>
A unique and descriptive identifier for the pool.
Source§fn space_left(&self) -> usize
fn space_left(&self) -> usize
Number of buffer slots left in the pool.
Source§fn total_size(&self) -> usize
fn total_size(&self) -> usize
Total size of the pool in number of buffers.
Source§fn buffer_size(&self) -> usize
fn buffer_size(&self) -> usize
Size of one buffer
Auto Trait Implementations§
impl<T> Freeze for CuHostMemoryPool<T>
impl<T> !RefUnwindSafe for CuHostMemoryPool<T>
impl<T> Send for CuHostMemoryPool<T>where
T: Send,
impl<T> Sync for CuHostMemoryPool<T>where
T: Send,
impl<T> Unpin for CuHostMemoryPool<T>
impl<T> !UnwindSafe for CuHostMemoryPool<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
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