Enum ocl::enums::ProgramInfoResult
[−]
[src]
pub enum ProgramInfoResult { ReferenceCount(u32), Context(Context), NumDevices(u32), Devices(Vec<DeviceId>), Source(String), BinarySizes(Vec<usize>), Binaries(Vec<Vec<u8>>), NumKernels(usize), KernelNames(String), Error(Box<Error>), }
A program info result.
Variants
ReferenceCount(u32)
Context(Context)
NumDevices(u32)
Devices(Vec<DeviceId>)
Source(String)
BinarySizes(Vec<usize>)
Binaries(Vec<Vec<u8>>)
NumKernels(usize)
KernelNames(String)
Error(Box<Error>)
Methods
impl ProgramInfoResult
[src]
fn from_bytes(
request: ProgramInfo,
result: Result<Vec<u8>, Error>
) -> ProgramInfoResult
request: ProgramInfo,
result: Result<Vec<u8>, Error>
) -> ProgramInfoResult
Trait Implementations
impl Display for ProgramInfoResult
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Error for ProgramInfoResult
[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 ProgramInfoResult
[src]
impl From<Error> for ProgramInfoResult
[src]
fn from(err: Error) -> ProgramInfoResult
Performs the conversion.