pub enum PythonCallError {
InvalidMethodIndex {
index: usize,
count: usize,
},
WireModeMismatch {
method: &'static str,
declared: bool,
attempted: bool,
},
InputDecode(String),
OutputEncode(String),
Plugin(PluginError),
}Expand description
Errors a typed call can produce on the Python side.
Variants§
InvalidMethodIndex
method_index was past the end of the interface descriptor’s methods.
WireModeMismatch
Tried to call a typed method through the raw path, or vice versa.
InputDecode(String)
The host-supplied input bytes (typed path) couldn’t be decoded.
OutputEncode(String)
The Python return value couldn’t be encoded back for the host.
Plugin(PluginError)
A Python exception was raised by the plugin.
Trait Implementations§
Source§impl Debug for PythonCallError
impl Debug for PythonCallError
Source§impl Display for PythonCallError
impl Display for PythonCallError
Source§impl Error for PythonCallError
impl Error for PythonCallError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for PythonCallError
impl RefUnwindSafe for PythonCallError
impl Send for PythonCallError
impl Sync for PythonCallError
impl Unpin for PythonCallError
impl UnsafeUnpin for PythonCallError
impl UnwindSafe for PythonCallError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more