Enum ocl::enums::MemInfoResult
[−]
[src]
pub enum MemInfoResult { Type(MemObjectType), Flags(MemFlags), Size(usize), HostPtr(Option<(*mut c_void, Option<usize>)>), MapCount(u32), ReferenceCount(u32), Context(Context), AssociatedMemobject(Option<Mem>), Offset(usize), Error(Box<Error>), }
A mem info result.
[UNSTABLE][INCOMPLETE]
[TODO]: Do something with HostPtr
. It should not be be a raw pointer.
Variants
Type(MemObjectType)
Flags(MemFlags)
Size(usize)
HostPtr(Option<(*mut c_void, Option<usize>)>)
MapCount(u32)
ReferenceCount(u32)
Context(Context)
AssociatedMemobject(Option<Mem>)
Offset(usize)
Error(Box<Error>)
Methods
impl MemInfoResult
[src]
fn from_bytes(request: MemInfo, result: Result<Vec<u8>, Error>) -> MemInfoResult
Trait Implementations
impl Display for MemInfoResult
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Error for MemInfoResult
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more
impl Debug for MemInfoResult
[src]
impl From<Error> for MemInfoResult
[src]
fn from(err: Error) -> MemInfoResult
Performs the conversion.