#[non_exhaustive]pub enum PylonError {
Msg(String),
ShimCallFailed {
op: &'static str,
callsite: String,
err_str: String,
},
InvalidShimOutput {
op: &'static str,
detail: String,
},
DlOpenFailed {
path: OsString,
source: String,
},
ShimError(ShimError),
}Expand description
Errors returned by this crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Msg(String)
A general error message produced by this crate.
ShimCallFailed
A shim call returned an error string.
Fields
InvalidShimOutput
A shim call reported success but returned invalid output.
Fields
DlOpenFailed
The shim library could not be opened.
ShimError(ShimError)
A lower-level error reported while loading or validating the shim.
Trait Implementations§
Source§impl Clone for PylonError
impl Clone for PylonError
Source§fn clone(&self) -> PylonError
fn clone(&self) -> PylonError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PylonError
impl Debug for PylonError
Source§impl Display for PylonError
impl Display for PylonError
Source§impl Error for PylonError
impl Error for PylonError
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()
Source§impl From<Error> for PylonError
impl From<Error> for PylonError
Source§fn from(orig: Error) -> PylonError
fn from(orig: Error) -> PylonError
Converts to this type from the input type.
Source§impl From<Utf8Error> for PylonError
impl From<Utf8Error> for PylonError
Source§fn from(_: Utf8Error) -> PylonError
fn from(_: Utf8Error) -> PylonError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PylonError
impl RefUnwindSafe for PylonError
impl Send for PylonError
impl Sync for PylonError
impl Unpin for PylonError
impl UnsafeUnpin for PylonError
impl UnwindSafe for PylonError
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