pub enum PythonLoadError {
Manifest(PackageError),
NotPythonRuntime {
path: String,
got: String,
},
MissingPythonSection {
path: String,
},
ImportFailed {
module: String,
message: String,
},
InterfaceHashMismatch {
interface: &'static str,
got: u64,
expected: u64,
},
MissingAttr {
module: String,
attr: &'static str,
},
MethodNotRegistered {
interface: &'static str,
method: &'static str,
message: String,
},
}Expand description
Errors that can happen during Python plugin load.
Variants§
Manifest(PackageError)
NotPythonRuntime
MissingPythonSection
ImportFailed
InterfaceHashMismatch
MissingAttr
MethodNotRegistered
Trait Implementations§
Source§impl Debug for PythonLoadError
impl Debug for PythonLoadError
Source§impl Display for PythonLoadError
impl Display for PythonLoadError
Source§impl Error for PythonLoadError
impl Error for PythonLoadError
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()
Source§impl From<PackageError> for PythonLoadError
impl From<PackageError> for PythonLoadError
Source§fn from(source: PackageError) -> Self
fn from(source: PackageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PythonLoadError
impl !RefUnwindSafe for PythonLoadError
impl Send for PythonLoadError
impl Sync for PythonLoadError
impl Unpin for PythonLoadError
impl UnsafeUnpin for PythonLoadError
impl !UnwindSafe for PythonLoadError
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