Enum ocl::Error []

pub enum Error {
    Void,
    Conversion(String),
    Status {
        status: Status,
        status_string: String,
        fn_name: &'static str,
        fn_info: String,
        desc: String,
    },
    String(String),
    Nul(NulError),
    Io(Error),
    FromUtf8Error(FromUtf8Error),
    UnspecifiedDimensions,
    IntoStringError(IntoStringError),
    EmptyInfoResult(EmptyInfoResult),
}

An enum containing either a String or one of several other error types.

Implements the usual error traits.

Stability

The String variant may eventually be removed. Many more variants and sub-types will be added as time goes on and things stabilize.

Status will eventually be changed internally to contain a sub-error type unique to each function which generates it (yeah that'll be fun to implement).

UnspecifiedDimensions may be moved into a sub-type.

For now, don't assume the existence of or check for any of the above.

Variants

Fields of Status

Methods

impl Error

Deprecated since 0.4.0

: Use ::from instead.

Returns a new Error with the description string: desc.

Depricated

Use ::from instead.

Deprecated since 0.4.0

: Use ::from instead.

Returns a new Error::String with the given description.

Deprecated since 0.4.0

: Use Err("...".into()) instead.

Returns a new ocl_core::Result::Err containing an ocl_core::Error::String variant with the given description.

Depricated

Use ::err_string or Err("...".into()) instead.

Returns a new Err(ocl_core::Error::String(...)) variant with the given description.

Returns a new ocl::Result::Err containing an ocl::Error with the given error code and description.

Returns a new ocl::Result::Err containing an ocl::Error::Conversion variant with the given description.

If this is a String variant, concatenate txt to the front of the contained string. Otherwise, do nothing at all.

Returns the error status code for Status variants.

Trait Implementations

impl Display for Error

Formats the value using the given formatter. Read more

impl Send for Error

impl Error for Error

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<SamplerInfoResult> for Error

Performs the conversion.

impl From<KernelArgInfoResult> for Error

Performs the conversion.

impl From<Error> for Error

Performs the conversion.

impl From<ProgramBuildInfoResult> for Error

Performs the conversion.

impl From<EmptyInfoResult> for Error

Performs the conversion.

impl<'a> From<&'a str> for Error

Performs the conversion.

impl From<KernelInfoResult> for Error

Performs the conversion.

impl From<CommandQueueInfoResult> for Error

Performs the conversion.

impl From<NulError> for Error

Performs the conversion.

impl From<ProfilingInfoResult> for Error

Performs the conversion.

impl From<PlatformInfoResult> for Error

Performs the conversion.

impl From<ProgramInfoResult> for Error

Performs the conversion.

impl From<String> for Error

Performs the conversion.

impl From<FromUtf8Error> for Error

Performs the conversion.

impl From<ImageInfoResult> for Error

Performs the conversion.

impl From<ContextInfoResult> for Error

Performs the conversion.

impl From<IntoStringError> for Error

Performs the conversion.

impl From<()> for Error

Performs the conversion.

impl From<DeviceInfoResult> for Error

Performs the conversion.

impl From<EventInfoResult> for Error

Performs the conversion.

impl From<KernelWorkGroupInfoResult> for Error

Performs the conversion.

impl From<MemInfoResult> for Error

Performs the conversion.

impl Debug for Error

Formats the value using the given formatter.

impl From<Error> for OclError
[src]

Performs the conversion.