Enum ocl::enums::ContextInfoResult
[−]
[src]
pub enum ContextInfoResult { ReferenceCount(u32), Devices(Vec<DeviceId>), Properties(ContextProperties), NumDevices(u32), Error(Box<Error>), }
A context info result.
[INCOMPLETE][FIXME]: Figure out what to do with the properties variant.
Variants
ReferenceCount(u32)
Devices(Vec<DeviceId>)
Properties(ContextProperties)
NumDevices(u32)
Error(Box<Error>)
Methods
impl ContextInfoResult
[src]
fn from_bytes(
request: ContextInfo,
result: Result<Vec<u8>, Error>
) -> ContextInfoResult
request: ContextInfo,
result: Result<Vec<u8>, Error>
) -> ContextInfoResult
fn platform(&self) -> Option<PlatformId>
Trait Implementations
impl Display for ContextInfoResult
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Error for ContextInfoResult
[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 ContextInfoResult
[src]
impl From<Error> for ContextInfoResult
[src]
fn from(err: Error) -> ContextInfoResult
Performs the conversion.