# Enum ocl::enums::Status [−]

    #[repr(C)]
    pub enum Status {
        CL_SUCCESS,
        CL_DEVICE_NOT_FOUND,
        CL_DEVICE_NOT_AVAILABLE,
        CL_COMPILER_NOT_AVAILABLE,
        CL_MEM_OBJECT_ALLOCATION_FAILURE,
        CL_OUT_OF_RESOURCES,
        CL_OUT_OF_HOST_MEMORY,
        CL_PROFILING_INFO_NOT_AVAILABLE,
        CL_MEM_COPY_OVERLAP,
        CL_IMAGE_FORMAT_MISMATCH,
        CL_IMAGE_FORMAT_NOT_SUPPORTED,
        CL_BUILD_PROGRAM_FAILURE,
        CL_MAP_FAILURE,
        CL_MISALIGNED_SUB_BUFFER_OFFSET,
        CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST,
        CL_COMPILE_PROGRAM_FAILURE,
        CL_LINKER_NOT_AVAILABLE,
        CL_LINK_PROGRAM_FAILURE,
        CL_DEVICE_PARTITION_FAILED,
        CL_KERNEL_ARG_INFO_NOT_AVAILABLE,
        CL_INVALID_VALUE,
        CL_INVALID_DEVICE_TYPE,
        CL_INVALID_PLATFORM,
        CL_INVALID_DEVICE,
        CL_INVALID_CONTEXT,
        CL_INVALID_QUEUE_PROPERTIES,
        CL_INVALID_COMMAND_QUEUE,
        CL_INVALID_HOST_PTR,
        CL_INVALID_MEM_OBJECT,
        CL_INVALID_IMAGE_FORMAT_DESCRIPTOR,
        CL_INVALID_IMAGE_SIZE,
        CL_INVALID_SAMPLER,
        CL_INVALID_BINARY,
        CL_INVALID_BUILD_OPTIONS,
        CL_INVALID_PROGRAM,
        CL_INVALID_PROGRAM_EXECUTABLE,
        CL_INVALID_KERNEL_NAME,
        CL_INVALID_KERNEL_DEFINITION,
        CL_INVALID_KERNEL,
        CL_INVALID_ARG_INDEX,
        CL_INVALID_ARG_VALUE,
        CL_INVALID_ARG_SIZE,
        CL_INVALID_KERNEL_ARGS,
        CL_INVALID_WORK_DIMENSION,
        CL_INVALID_WORK_GROUP_SIZE,
        CL_INVALID_WORK_ITEM_SIZE,
        CL_INVALID_GLOBAL_OFFSET,
        CL_INVALID_EVENT_WAIT_LIST,
        CL_INVALID_EVENT,
        CL_INVALID_OPERATION,
        CL_INVALID_GL_OBJECT,
        CL_INVALID_BUFFER_SIZE,
        CL_INVALID_MIP_LEVEL,
        CL_INVALID_GLOBAL_WORK_SIZE,
        CL_INVALID_PROPERTY,
        CL_INVALID_IMAGE_DESCRIPTOR,
        CL_INVALID_COMPILER_OPTIONS,
        CL_INVALID_LINKER_OPTIONS,
        CL_INVALID_DEVICE_PARTITION_COUNT,
        CL_INVALID_PIPE_SIZE,
        CL_INVALID_DEVICE_QUEUE,
        CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR,
        CL_PLATFORM_NOT_FOUND_KHR,
        CL_NV_INVALID_MEM_ACCESS,
    }

The status of an OpenCL API call. Used for returning success/error codes.

## Variants

`CL_SUCCESS` `CL_DEVICE_NOT_FOUND` `CL_DEVICE_NOT_AVAILABLE` `CL_COMPILER_NOT_AVAILABLE` `CL_MEM_OBJECT_ALLOCATION_FAILURE` `CL_OUT_OF_RESOURCES` `CL_OUT_OF_HOST_MEMORY` `CL_PROFILING_INFO_NOT_AVAILABLE` `CL_MEM_COPY_OVERLAP` `CL_IMAGE_FORMAT_MISMATCH` `CL_IMAGE_FORMAT_NOT_SUPPORTED` `CL_BUILD_PROGRAM_FAILURE` `CL_MAP_FAILURE` `CL_MISALIGNED_SUB_BUFFER_OFFSET` `CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST` `CL_COMPILE_PROGRAM_FAILURE` `CL_LINKER_NOT_AVAILABLE` `CL_LINK_PROGRAM_FAILURE` `CL_DEVICE_PARTITION_FAILED` `CL_KERNEL_ARG_INFO_NOT_AVAILABLE` `CL_INVALID_VALUE` `CL_INVALID_DEVICE_TYPE` `CL_INVALID_PLATFORM` `CL_INVALID_DEVICE` `CL_INVALID_CONTEXT` `CL_INVALID_QUEUE_PROPERTIES` `CL_INVALID_COMMAND_QUEUE` `CL_INVALID_HOST_PTR` `CL_INVALID_MEM_OBJECT` `CL_INVALID_IMAGE_FORMAT_DESCRIPTOR` `CL_INVALID_IMAGE_SIZE` `CL_INVALID_SAMPLER` `CL_INVALID_BINARY` `CL_INVALID_BUILD_OPTIONS` `CL_INVALID_PROGRAM` `CL_INVALID_PROGRAM_EXECUTABLE` `CL_INVALID_KERNEL_NAME` `CL_INVALID_KERNEL_DEFINITION` `CL_INVALID_KERNEL` `CL_INVALID_ARG_INDEX` `CL_INVALID_ARG_VALUE` `CL_INVALID_ARG_SIZE` `CL_INVALID_KERNEL_ARGS` `CL_INVALID_WORK_DIMENSION` `CL_INVALID_WORK_GROUP_SIZE` `CL_INVALID_WORK_ITEM_SIZE` `CL_INVALID_GLOBAL_OFFSET` `CL_INVALID_EVENT_WAIT_LIST` `CL_INVALID_EVENT` `CL_INVALID_OPERATION` `CL_INVALID_GL_OBJECT` `CL_INVALID_BUFFER_SIZE` `CL_INVALID_MIP_LEVEL` `CL_INVALID_GLOBAL_WORK_SIZE` `CL_INVALID_PROPERTY` `CL_INVALID_IMAGE_DESCRIPTOR` `CL_INVALID_COMPILER_OPTIONS` `CL_INVALID_LINKER_OPTIONS` `CL_INVALID_DEVICE_PARTITION_COUNT` `CL_INVALID_PIPE_SIZE` `CL_INVALID_DEVICE_QUEUE` `CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR` `CL_PLATFORM_NOT_FOUND_KHR` `CL_NV_INVALID_MEM_ACCESS`

## Trait Implementations

### `impl Eq for Status`
[src]

### `impl Display for Status`
[src]

#### `fn fmt(&self, fmtr: &mut Formatter) -> Result<(), Error>`
[src]

Formats the value using the given formatter. Read more

### `impl PartialEq<Status> for Status`
[src]

#### `fn eq(&self, __arg_0: &Status) -> bool`
[src]

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

#### `fn ne(&self, other: &Rhs) -> bool`
1.0.0
[src]

This method tests for `!=`.

### `impl Hash for Status`
[src]

#### `fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,`
[src]

Feeds this value into the given [`Hasher`]. Read more

#### `fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,`
1.3.0
[src]

Feeds a slice of this type into the given [`Hasher`]. Read more

### `impl Clone for Status`
[src]

#### `fn clone(&self) -> Status`
[src]

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`
1.0.0
[src]

Performs copy-assignment from `source`. Read more

### `impl Copy for Status`
[src]

### `impl FromPrimitive for Status`

#### `fn from_i64(n: i64) -> Option<Status>`

Convert an `i64` to return an optional value of this type. If the type cannot be represented by this value, the `None` is returned. Read more

#### `fn from_u64(n: u64) -> Option<Status>`

Convert an `u64` to return an optional value of this type. If the type cannot be represented by this value, the `None` is returned. Read more

#### `fn from_isize(n: isize) -> Option<Self>`
[src]

Convert an `isize` to return an optional value of this type. If the value cannot be represented by this value, the `None` is returned. Read more

#### `fn from_i8(n: i8) -> Option<Self>`
[src]

Convert an `i8` to return an optional value of this type. If the type cannot be represented by this value, the `None` is returned. Read more

#### `fn from_i16(n: i16) -> Option<Self>`
[src]

Convert an `i16` to return an optional value of this type. If the type cannot be represented by this value, the `None` is returned. Read more

#### `fn from_i32(n: i32) -> Option<Self>`
[src]

Convert an `i32` to return an optional value of this type. If the type cannot be represented by this value, the `None` is returned. Read more

#### `fn from_usize(n: usize) -> Option<Self>`
[src]

Convert a `usize` to return an optional value of this type. If the type cannot be represented by this value, the `None` is returned. Read more

#### `fn from_u8(n: u8) -> Option<Self>`
[src]

Convert an `u8` to return an optional value of this type. If the type cannot be represented by this value, the `None` is returned. Read more

#### `fn from_u16(n: u16) -> Option<Self>`
[src]

Convert an `u16` to return an optional value of this type. If the type cannot be represented by this value, the `None` is returned. Read more

#### `fn from_u32(n: u32) -> Option<Self>`
[src]

Convert an `u32` to return an optional value of this type. If the type cannot be represented by this value, the `None` is returned. Read more

#### `fn from_f32(n: f32) -> Option<Self>`
[src]

Convert a `f32` to return an optional value of this type. If the type cannot be represented by this value, the `None` is returned. Read more

#### `fn from_f64(n: f64) -> Option<Self>`
[src]

Convert a `f64` to return an optional value of this type. If the type cannot be represented by this value, the `None` is returned. Read more

### `impl Debug for Status`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>`
[src]

Formats the value using the given formatter. Read more

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)