Skip to main content

PyErrArguments

Trait PyErrArguments 

Source
pub trait PyErrArguments: Send + Sync {
    // Required method
    fn arguments(self, py: Python<'_>) -> Py<PyAny>;
}
Expand description

Helper conversion trait that allows to use custom arguments for lazy exception construction.

Required Methods§

Source

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Arguments for exception

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PyErrArguments for IntoStringError

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Source§

impl PyErrArguments for NulError

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Source§

impl PyErrArguments for FromUtf8Error

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Source§

impl PyErrArguments for TryFromSliceError

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Source§

impl PyErrArguments for CharTryFromError

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Source§

impl PyErrArguments for ParseCharError

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Source§

impl PyErrArguments for AddrParseError

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Source§

impl PyErrArguments for ParseIntError

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Source§

impl PyErrArguments for TryFromIntError

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Source§

impl PyErrArguments for ParseFloatError

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Source§

impl PyErrArguments for ParseBoolError

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Source§

impl PyErrArguments for TryFromFloatSecsError

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Source§

impl PyErrArguments for JoinPathsError

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Source§

impl PyErrArguments for Error

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Source§

impl PyErrArguments for StripPrefixError

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Source§

impl PyErrArguments for SystemTimeError

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Source§

impl<W: Send + Sync> PyErrArguments for IntoInnerError<W>

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Implementors§

Source§

impl<T> PyErrArguments for T
where T: for<'py> IntoPyObject<'py> + Send + Sync,