[][src]Enum abi_stable::library::RootModuleError

#[repr(u8)]pub enum RootModuleError {
    Returned(RBoxError),
    Unwound,
}

The errors that a #[export_root_module] function can return.

Variants

Returned(RBoxError)
Unwound

Implementations

impl RootModuleError[src]

pub fn reallocate(&mut self)[src]

Reallocates the error using the current global allocator, to ensure that there is no pointer into the dynamic library.

pub fn into_library_error<M: RootModule>(self) -> LibraryError[src]

Converts this RootModuleError into a LibraryError, with metadata about the module that failed to load.

Trait Implementations

impl Debug for RootModuleError[src]

impl Display for RootModuleError[src]

impl Error for RootModuleError[src]

impl GetStaticEquivalent_ for RootModuleError[src]

type StaticEquivalent = _static_RootModuleError

impl StableAbi for RootModuleError[src]

type IsNonZeroType = False

Whether this type has a single invalid bit-pattern. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> GetWithMetadata for T[src]

type ForSelf = WithMetadata_<T, T>

This is always WithMetadata_<Self, Self>

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SelfOps for T where
    T: ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<This> TransmuteElement for This where
    This: ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The error type returned when the conversion fails.

impl<T> TypeIdentity for T where
    T: ?Sized
[src]

type Type = T

The same type as Self. Read more