pub enum OCLErrorKind {
Show 74 variants
GetPlatformIDs,
GetDeviceIDs,
InvalidDeviceIdx,
GetDeviceInfo,
CreateContext,
CreateCommandQueue,
WaitForEvents,
EnqueueReadBuffer,
EnqueueWriteBuffer,
EnqueueCopyBuffer,
EnqueueNDRangeKernel,
CreateBuffer,
DeviceNotFound,
DeviceNotAvailable,
CompilerNotAvailable,
MemObjectAllocationFailure,
OutOfResources,
OutOfHostMemory,
ProfilingInfoNotAvailable,
MemCopyOverlap,
ImageFormatMismatch,
ImageFormatNotSupported,
BuildProgramFailures,
MapFailure,
MisalignedSubBufferOffset,
ExecStatusErrorForEventsInWaitList,
CompileProgramFailure,
LinkerNotAvailable,
LinkProgramFailure,
DevicePartitionFailed,
KernelArgInfoNotAvailable,
InvalidValue,
InvalidDeviceType,
InvalidPlatform,
InvalidDevice,
InvalidContext,
InvalidQueueProperties,
InvalidCommandQueue,
InvalidHostPtr,
InvalidMemObject,
InvalidImageFormatDescriptor,
InvalidImageSize,
InvalidSampler,
InvalidBinary,
InvalidBuildOptions,
InvalidProgram,
InvalidProgramExecutable,
InvalidKernelName,
InvalidKernelDefintion,
InvalidKernel,
InvalidArgIndex,
InvalidArgValue,
InvalidArgSize,
InvalidKernelArgs,
InvalidWorkDimension,
InvalidWorkGroupSize,
InvalidWorkItemSize,
InvalidGlobalOffset,
InvalidEventWaitList,
InvalidEvent,
InvalidOperation,
InvalidGlObject,
InvalidBufferSize,
InvalidMIPLevel,
InvalidGlobalWorkSize,
InvalidProperty,
InvalidImageDescriptor,
InvalidCompilerOptions,
InvalidLinkerOptions,
InvalidDevicePartitionCount,
InvalidPipeSize,
InvalidDeviceQueue,
PlatformNotFoundKHR,
Unknown,
}Variants§
GetPlatformIDs
GetDeviceIDs
InvalidDeviceIdx
GetDeviceInfo
CreateContext
CreateCommandQueue
WaitForEvents
EnqueueReadBuffer
EnqueueWriteBuffer
EnqueueCopyBuffer
EnqueueNDRangeKernel
CreateBuffer
DeviceNotFound
DeviceNotAvailable
CompilerNotAvailable
MemObjectAllocationFailure
OutOfResources
OutOfHostMemory
ProfilingInfoNotAvailable
MemCopyOverlap
ImageFormatMismatch
ImageFormatNotSupported
BuildProgramFailures
MapFailure
MisalignedSubBufferOffset
ExecStatusErrorForEventsInWaitList
CompileProgramFailure
LinkerNotAvailable
LinkProgramFailure
DevicePartitionFailed
KernelArgInfoNotAvailable
InvalidValue
InvalidDeviceType
InvalidPlatform
InvalidDevice
InvalidContext
InvalidQueueProperties
InvalidCommandQueue
InvalidHostPtr
InvalidMemObject
InvalidImageFormatDescriptor
InvalidImageSize
InvalidSampler
InvalidBinary
InvalidBuildOptions
InvalidProgram
InvalidProgramExecutable
InvalidKernelName
InvalidKernelDefintion
InvalidKernel
InvalidArgIndex
InvalidArgValue
InvalidArgSize
InvalidKernelArgs
InvalidWorkDimension
InvalidWorkGroupSize
InvalidWorkItemSize
InvalidGlobalOffset
InvalidEventWaitList
InvalidEvent
InvalidOperation
InvalidGlObject
InvalidBufferSize
InvalidMIPLevel
InvalidGlobalWorkSize
InvalidProperty
InvalidImageDescriptor
InvalidCompilerOptions
InvalidLinkerOptions
InvalidDevicePartitionCount
InvalidPipeSize
InvalidDeviceQueue
PlatformNotFoundKHR
Unknown
Implementations§
Source§impl OCLErrorKind
impl OCLErrorKind
pub fn from_value(value: i32) -> OCLErrorKind
Trait Implementations§
Source§impl Clone for OCLErrorKind
impl Clone for OCLErrorKind
Source§fn clone(&self) -> OCLErrorKind
fn clone(&self) -> OCLErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OCLErrorKind
impl Debug for OCLErrorKind
Source§impl Display for OCLErrorKind
impl Display for OCLErrorKind
Source§impl Error for OCLErrorKind
impl Error for OCLErrorKind
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Hash for OCLErrorKind
impl Hash for OCLErrorKind
Source§impl Ord for OCLErrorKind
impl Ord for OCLErrorKind
Source§fn cmp(&self, other: &OCLErrorKind) -> Ordering
fn cmp(&self, other: &OCLErrorKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OCLErrorKind
impl PartialEq for OCLErrorKind
Source§impl PartialOrd for OCLErrorKind
impl PartialOrd for OCLErrorKind
impl Copy for OCLErrorKind
impl Eq for OCLErrorKind
impl StructuralPartialEq for OCLErrorKind
Auto Trait Implementations§
impl Freeze for OCLErrorKind
impl RefUnwindSafe for OCLErrorKind
impl Send for OCLErrorKind
impl Sync for OCLErrorKind
impl Unpin for OCLErrorKind
impl UnwindSafe for OCLErrorKind
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