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

Object Safety§

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§