Struct ReadBuffer

Source
pub struct ReadBuffer<'a, 'b> { /* private fields */ }
Expand description

Event that reads from an OpenCL buffer to host memory

Implementations§

Source§

impl<'a, 'b> ReadBuffer<'a, 'b>

Source

pub fn new<T: Copy + Unpin>( queue: &CommandQueue, blocking: bool, offset: usize, src: &'a MemBuffer<T>, dst: &'b mut [T], wait: impl IntoIterator<Item = impl AsRef<BaseEvent>>, ) -> Result<Self>

Trait Implementations§

Source§

impl AsRef<BaseEvent> for ReadBuffer<'_, '_>

Source§

fn as_ref(&self) -> &BaseEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Event for ReadBuffer<'_, '_>

Source§

type Result = ()

Source§

fn wait(self) -> Result<Self::Result>

Source§

fn wait_all(iter: impl IntoIterator<Item = Self>) -> Result<Vec<Self::Result>>

Source§

fn command_queue(&self) -> Result<CommandQueue>

Source§

fn ty(&self) -> Result<CommandType>

Source§

fn status(&self) -> Result<EventStatus>

Source§

fn map<O, F: Unpin + FnOnce(Self::Result) -> O>(self, f: F) -> Map<O, Self, F>

Source§

fn then<F: Unpin + FnOnce(&mut Self::Result)>(self, f: F) -> Then<Self, F>

Source§

fn swap<O: Unpin>(self, v: O) -> Swap<O, Self>

Source§

fn borrow_base(&self) -> &BaseEvent

Auto Trait Implementations§

§

impl<'a, 'b> Freeze for ReadBuffer<'a, 'b>

§

impl<'a, 'b> RefUnwindSafe for ReadBuffer<'a, 'b>

§

impl<'a, 'b> Send for ReadBuffer<'a, 'b>

§

impl<'a, 'b> Sync for ReadBuffer<'a, 'b>

§

impl<'a, 'b> Unpin for ReadBuffer<'a, 'b>

§

impl<'a, 'b> UnwindSafe for ReadBuffer<'a, 'b>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.