pyo3_stub_gen::exception

Trait NativeException

Source
pub trait NativeException {
    // Required method
    fn type_name() -> &'static str;
}
Expand description

Native exceptions in Python

Required Methods§

Source

fn type_name() -> &'static str

Type name in Python side

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NativeException for PyArithmeticError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyAssertionError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyAttributeError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyBaseException

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyBlockingIOError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyBrokenPipeError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyBufferError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyBytesWarning

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyChildProcessError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyConnectionAbortedError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyConnectionError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyConnectionRefusedError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyConnectionResetError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyDeprecationWarning

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyEOFError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyEnvironmentError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyException

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyFileExistsError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyFileNotFoundError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyFloatingPointError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyFutureWarning

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyGeneratorExit

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyIOError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyImportError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyImportWarning

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyIndexError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyInterruptedError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyIsADirectoryError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyKeyError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyKeyboardInterrupt

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyLookupError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyMemoryError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyModuleNotFoundError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyNameError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyNotADirectoryError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyNotImplementedError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyOSError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyOverflowError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyPendingDeprecationWarning

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyPermissionError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyProcessLookupError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyRecursionError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyReferenceError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyResourceWarning

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyRuntimeError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyRuntimeWarning

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyStopAsyncIteration

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyStopIteration

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PySyntaxError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PySyntaxWarning

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PySystemError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PySystemExit

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyTimeoutError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyTypeError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyUnboundLocalError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyUnicodeDecodeError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyUnicodeEncodeError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyUnicodeError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyUnicodeTranslateError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyUnicodeWarning

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyUserWarning

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyValueError

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyWarning

Source§

fn type_name() -> &'static str

Source§

impl NativeException for PyZeroDivisionError

Source§

fn type_name() -> &'static str

Implementors§