pub enum HostBuf<T> {
Owned(Vec<T>),
Pinned(PinnedBuf<T>),
}Expand description
Host-side buffer surface. Owned Vec<T> for low-volume
convenience; PinnedBuf<T> for async-overlappable transfers
sourced from a crate::host::PinnedBufferPool.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for HostBuf<T>
impl<T> RefUnwindSafe for HostBuf<T>where
T: RefUnwindSafe,
impl<T> Send for HostBuf<T>where
T: Send,
impl<T> Sync for HostBuf<T>where
T: Sync,
impl<T> Unpin for HostBuf<T>where
T: Unpin,
impl<T> UnsafeUnpin for HostBuf<T>
impl<T> UnwindSafe for HostBuf<T>where
T: RefUnwindSafe + UnwindSafe,
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