Struct popcorn::frameworks::native::Device
[−]
[src]
pub struct Device { /* fields omitted */ }
Methods
impl Device
[src]
Trait Implementations
impl Debug for Device
[src]
impl Clone for Device
[src]
fn clone(&self) -> Device
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Device for Device
[src]
type H = Hardware
The Hardware representation for this Device.
type M = Memory
The Memory representation for this Device.
type Error = Error
The Error representation for this Device.
fn id(&self) -> isize
Returns the unique identifier of the Device.
fn hardware(&self) -> &Self::H
Returns the hardware, which defines the Device.
fn alloc_memory(&self, size: usize) -> Result<Self::M, Self::Error>
Allocates a new buffer on the Device.
fn sync_from_vec<T: Send + Copy + Sized + 'static>(
&self,
mem: Self::M,
vec: Vec<T>
) -> Box<Future<Item = Self::M, Error = Self::Error>>
&self,
mem: Self::M,
vec: Vec<T>
) -> Box<Future<Item = Self::M, Error = Self::Error>>
Sync data from Vec into memory
fn sync_to_vec<T: Send + Copy + Sized + 'static>(
&self,
mem: Self::M
) -> Box<Future<Item = (Self::M, Vec<T>), Error = Self::Error>>
&self,
mem: Self::M
) -> Box<Future<Item = (Self::M, Vec<T>), Error = Self::Error>>
Sync data from device to Vec
impl PartialEq for Device
[src]
fn eq(&self, o: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.