Enum ocl::enums::ContextInfoResult
source · pub enum ContextInfoResult {
ReferenceCount(u32),
Devices(Vec<DeviceId>),
Properties(ContextProperties),
NumDevices(u32),
}
Expand description
A context info result.
[INCOMPLETE][FIXME]: Figure out what to do with the properties variant.
Variants§
Implementations§
source§impl ContextInfoResult
impl ContextInfoResult
pub fn from_bytes( request: ContextInfo, result: Vec<u8> ) -> Result<ContextInfoResult, Error>
pub fn platform(&self) -> Option<PlatformId>
Trait Implementations§
source§impl Debug for ContextInfoResult
impl Debug for ContextInfoResult
Auto Trait Implementations§
impl Freeze for ContextInfoResult
impl RefUnwindSafe for ContextInfoResult
impl Send for ContextInfoResult
impl Sync for ContextInfoResult
impl Unpin for ContextInfoResult
impl UnwindSafe for ContextInfoResult
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more