Trait pyo3::callback::PyCallbackOutput

source ·
pub trait PyCallbackOutput: Copy {
    const ERR_VALUE: Self;
}
Expand description

A type which can be the return type of a python C-API callback

Required Associated Constants§

source

const ERR_VALUE: Self

The error value to return to python if the callback raised an exception

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl PyCallbackOutput for *mut PyObject

source§

const ERR_VALUE: Self = {0x0 as *mut pyo3_ffi::PyObject}

source§

impl PyCallbackOutput for c_int

source§

const ERR_VALUE: Self = -1i32

Implementors§

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here