pub enum RelocationError {
UnknownSymbol {
index: usize,
},
SectionNotFound {
section_index: usize,
symbol_index: usize,
symbol_name: Option<String>,
},
UnknownFunction {
address: u64,
caller_name: String,
},
UnknownProgram {
section_index: usize,
address: u64,
},
InvalidRelocationOffset {
offset: u64,
relocation_number: usize,
},
}Expand description
Relocation failures
Variants§
UnknownSymbol
Unknown symbol
SectionNotFound
Section not found
Fields
UnknownFunction
Unknown function
UnknownProgram
Unknown function
InvalidRelocationOffset
Invalid relocation offset
Trait Implementations§
Source§impl Debug for RelocationError
impl Debug for RelocationError
Source§impl Display for RelocationError
impl Display for RelocationError
Source§impl Error for RelocationError
impl Error for RelocationError
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()
Auto Trait Implementations§
impl Freeze for RelocationError
impl RefUnwindSafe for RelocationError
impl Send for RelocationError
impl Sync for RelocationError
impl Unpin for RelocationError
impl UnwindSafe for RelocationError
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