pub enum GetManagedFunctionError {
Hosting(HostingError),
TypeNotFound,
MissingMethod,
AssemblyNotFound,
MethodNotUnmanagedCallersOnly,
Other(u32),
}
Available on crate feature
netcore3_0
only.Expand description
Enum for errors that can occur while loading a managed assembly or managed function pointers.
Variants§
Hosting(HostingError)
An error occured inside the hosting components.
TypeNotFound
A type with the specified name could not be found or loaded.
MissingMethod
A method with the required signature and name could not be found.
AssemblyNotFound
The specified assembly could not be found.
MethodNotUnmanagedCallersOnly
The target method is not annotated with UnmanagedCallersOnly
.
Other(u32)
Some other unknown error occured.
Implementations§
source§impl GetManagedFunctionError
impl GetManagedFunctionError
sourcepub fn from_status_code(code: i32) -> Result<HostingSuccess, Self>
pub fn from_status_code(code: i32) -> Result<HostingSuccess, Self>
Converts the given staus code to a GetManagedFunctionError
.
Trait Implementations§
source§impl Debug for GetManagedFunctionError
impl Debug for GetManagedFunctionError
source§impl Display for GetManagedFunctionError
impl Display for GetManagedFunctionError
source§impl Error for GetManagedFunctionError
impl Error for GetManagedFunctionError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<GetManagedFunctionError> for Error
impl From<GetManagedFunctionError> for Error
source§fn from(source: GetManagedFunctionError) -> Self
fn from(source: GetManagedFunctionError) -> Self
Converts to this type from the input type.
source§impl From<HostingError> for GetManagedFunctionError
impl From<HostingError> for GetManagedFunctionError
source§fn from(source: HostingError) -> Self
fn from(source: HostingError) -> Self
Converts to this type from the input type.
source§impl Hash for GetManagedFunctionError
impl Hash for GetManagedFunctionError
source§impl Ord for GetManagedFunctionError
impl Ord for GetManagedFunctionError
source§fn cmp(&self, other: &GetManagedFunctionError) -> Ordering
fn cmp(&self, other: &GetManagedFunctionError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for GetManagedFunctionError
impl PartialEq for GetManagedFunctionError
source§fn eq(&self, other: &GetManagedFunctionError) -> bool
fn eq(&self, other: &GetManagedFunctionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GetManagedFunctionError
impl PartialOrd for GetManagedFunctionError
source§fn partial_cmp(&self, other: &GetManagedFunctionError) -> Option<Ordering>
fn partial_cmp(&self, other: &GetManagedFunctionError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for GetManagedFunctionError
impl StructuralPartialEq for GetManagedFunctionError
Auto Trait Implementations§
impl RefUnwindSafe for GetManagedFunctionError
impl Send for GetManagedFunctionError
impl Sync for GetManagedFunctionError
impl Unpin for GetManagedFunctionError
impl UnwindSafe for GetManagedFunctionError
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