Struct ocl_core::error::Error [] [src]

pub struct Error {
    pub kind: ErrorKind,
    pub cause: Option<Box<Error>>,
}

An Error.

Fields

Methods

impl Error
[src]

[src]

Deprecated since 0.4.0

: Use ::from instead.

Returns a new Error with the description string: desc.

Deprecated

Use ::from instead.

[src]

Deprecated since 0.4.0

: Use ::from instead.

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

[src]

Returns an Error with the UnspecifiedDimensions kind variant.

[src]

[src]

Deprecated since 0.4.0

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

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

Deprecated

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

[src]

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

[src]

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

[src]

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

[src]

Deprecated since 0.6.0

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

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

[src]

Creates a new error with this error as its cause.

[src]

Returns the error status code for Status variants.

[src]

Returns the error variant and contents.

[src]

Returns the immediate cause of this error (e.g. the next error in the chain).

Trait Implementations

impl From<PlatformInfoResult> for OclError
[src]

[src]

Performs the conversion.

impl From<DeviceInfoResult> for OclError
[src]

[src]

Performs the conversion.

impl From<ContextInfoResult> for OclError
[src]

[src]

Performs the conversion.

impl From<GlContextInfoResult> for OclError
[src]

[src]

Performs the conversion.

impl From<CommandQueueInfoResult> for OclError
[src]

[src]

Performs the conversion.

impl From<MemInfoResult> for OclError
[src]

[src]

Performs the conversion.

impl From<ImageInfoResult> for OclError
[src]

[src]

Performs the conversion.

impl From<SamplerInfoResult> for OclError
[src]

[src]

Performs the conversion.

impl From<ProgramInfoResult> for OclError
[src]

[src]

Performs the conversion.

impl From<ProgramBuildInfoResult> for OclError
[src]

[src]

Performs the conversion.

impl From<KernelInfoResult> for OclError
[src]

[src]

Performs the conversion.

impl From<KernelArgInfoResult> for OclError
[src]

[src]

Performs the conversion.

impl From<KernelWorkGroupInfoResult> for OclError
[src]

[src]

Performs the conversion.

impl From<EventInfoResult> for OclError
[src]

[src]

Performs the conversion.

impl From<ProfilingInfoResult> for OclError
[src]

[src]

Performs the conversion.

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

[src]

A short description of the error. Read more

[src]

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

impl From<()> for Error
[src]

[src]

Performs the conversion.

impl From<EmptyInfoResult> for Error
[src]

[src]

Performs the conversion.

impl From<String> for Error
[src]

[src]

Performs the conversion.

impl<'a> From<&'a str> for Error
[src]

[src]

Performs the conversion.

impl From<NulError> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

[src]

Performs the conversion.

impl From<IntoStringError> for Error
[src]

[src]

Performs the conversion.

impl Send for Error
[src]