Enum dynlink::DynlinkErrorKind
source · pub enum DynlinkErrorKind {
Show 21 variants
LibraryLoadFail {
library: UnloadedLibrary,
},
NameNotFound {
name: String,
},
SymbolLookupFail {
symname: String,
sourcelib: String,
},
NameAlreadyExists {
name: String,
},
ParseError {
err: ParseError,
},
MissingSection {
name: String,
},
FailedToAllocate {
comp: String,
layout: Layout,
},
LayoutError {
err: LayoutError,
},
DepEnumerationFail {
library: String,
},
NoTLSInfo {
library: String,
},
UnsupportedReloc {
library: String,
reloc: String,
},
RelocationSectionFail {
secname: String,
library: String,
},
RelocationFail {
library: String,
},
NewBackingFail,
LoadDirectiveFail {
dir: LoadDirective,
},
UnloadedLibrary {
library: String,
},
DepsRelocFail {
library: String,
},
InvalidLibraryId {
id: LibraryId,
},
InvalidCompartmentId {
id: CompartmentId,
},
InvalidELFHeader {
hdr_err: HeaderError,
},
NoEntryAddress {
name: String,
},
}
Variants§
LibraryLoadFail
Fields
§
library: UnloadedLibrary
NameNotFound
SymbolLookupFail
NameAlreadyExists
ParseError
Fields
§
err: ParseError
MissingSection
FailedToAllocate
LayoutError
Fields
§
err: LayoutError
DepEnumerationFail
NoTLSInfo
UnsupportedReloc
RelocationSectionFail
RelocationFail
NewBackingFail
LoadDirectiveFail
Fields
§
dir: LoadDirective
UnloadedLibrary
DepsRelocFail
InvalidLibraryId
InvalidCompartmentId
Fields
§
id: CompartmentId
InvalidELFHeader
Fields
§
hdr_err: HeaderError
NoEntryAddress
Trait Implementations§
source§impl Debug for DynlinkErrorKind
impl Debug for DynlinkErrorKind
source§impl Diagnostic for DynlinkErrorKind
impl Diagnostic for DynlinkErrorKind
source§fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
The cause of the error.
§fn code<'a>(&'a self) -> Option<Box<dyn Display + 'a, Global>>
fn code<'a>(&'a self) -> Option<Box<dyn Display + 'a, Global>>
Unique diagnostic code that can be used to look up more information
about this
Diagnostic
. Ideally also globally unique, and documented
in the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz
) is recommended, but more classic codes like
E0123
or enums will work just fine.§fn severity(&self) -> Option<Severity>
fn severity(&self) -> Option<Severity>
Diagnostic severity. This may be used by
ReportHandler
s to change the display format
of this diagnostic. Read more§fn help<'a>(&'a self) -> Option<Box<dyn Display + 'a, Global>>
fn help<'a>(&'a self) -> Option<Box<dyn Display + 'a, Global>>
Additional help text related to this
Diagnostic
. Do you have any
advice for the poor soul who’s just run into this issue?§fn url<'a>(&'a self) -> Option<Box<dyn Display + 'a, Global>>
fn url<'a>(&'a self) -> Option<Box<dyn Display + 'a, Global>>
URL to visit for a more detailed explanation/help about this
Diagnostic
.§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Source code to apply this
Diagnostic
’s [Diagnostic::labels
] to.§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_, Global>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_, Global>>
Labels to apply to this
Diagnostic
’s [Diagnostic::source_code
]Additional related
Diagnostic
s.source§impl Display for DynlinkErrorKind
impl Display for DynlinkErrorKind
source§impl Error for DynlinkErrorKind
impl Error for DynlinkErrorKind
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<DynlinkErrorKind> for DynlinkError
impl From<DynlinkErrorKind> for DynlinkError
source§fn from(value: DynlinkErrorKind) -> Self
fn from(value: DynlinkErrorKind) -> Self
Converts to this type from the input type.
source§impl From<HeaderError> for DynlinkErrorKind
impl From<HeaderError> for DynlinkErrorKind
source§fn from(source: HeaderError) -> Self
fn from(source: HeaderError) -> Self
Converts to this type from the input type.
source§impl From<LayoutError> for DynlinkErrorKind
impl From<LayoutError> for DynlinkErrorKind
source§fn from(source: LayoutError) -> Self
fn from(source: LayoutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Crossing for DynlinkErrorKind
impl !ObjSafe for DynlinkErrorKind
impl !RefUnwindSafe for DynlinkErrorKind
impl Send for DynlinkErrorKind
impl Sync for DynlinkErrorKind
impl Unpin for DynlinkErrorKind
impl !UnwindSafe for DynlinkErrorKind
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