[][src]Trait kpal_plugin::PluginError

pub trait PluginError: Error {
    fn new(error_code: c_int) -> Self;
fn error_code(&self) -> c_int; }

The set of functions that must be implemented by a plugin library's main error type.

Required methods

fn new(error_code: c_int) -> Self

Initializes and returns a new instace of the error type.

Arguments

  • error_code - One of the integer error codes recognized by KPAL.

fn error_code(&self) -> c_int

Returns the error code of the instance.

Loading content...

Implementors

Loading content...