Enum solana_rbpf::error::EbpfError [−][src]
pub enum EbpfError<E: UserDefinedError> {}Show variants
UserError(E), ElfError(ElfError), SycallAlreadyRegistered(usize), SyscallNotRegistered(usize), SyscallAlreadyBound(usize), CallDepthExceeded(usize, usize), ExitRootCallFrame, DivideByZero(usize), ExecutionOverrun(usize), CallOutsideTextSegment(usize, u64), ExceededMaxInstructions(usize, u64), JitNotCompiled, InvalidVirtualAddress(u64), VirtualAddressOverlap(u64), AccessViolation(usize, AccessType, u64, u64, &'static str), StackAccessViolation(usize, AccessType, u64, u64, i64), InvalidInstruction(usize), UnsupportedInstruction(usize), ExhausedTextSegment(usize),
Expand description
Error definitions
Variants
User defined error
ElfError(ElfError)
ELF error
SycallAlreadyRegistered(usize)
Syscall was already registered before
SyscallNotRegistered(usize)
Syscall was not registered before bind
SyscallAlreadyBound(usize)
Syscall already has a bound context object
Exceeded max BPF to BPF call depth
Attempt to exit from root call frame
DivideByZero(usize)
Divide by zero“
ExecutionOverrun(usize)
Exceeded max instructions allowed
Attempt to call to an address outside the text segment
Exceeded max instructions allowed
Program has not been JIT-compiled
InvalidVirtualAddress(u64)
Invalid virtual address
VirtualAddressOverlap(u64)
Virtual address overlap
AccessViolation(usize, AccessType, u64, u64, &'static str)
Access violation (general)
StackAccessViolation(usize, AccessType, u64, u64, i64)
Access violation (stack specific)
InvalidInstruction(usize)
Invalid instruction
UnsupportedInstruction(usize)
Unsupported instruction
ExhausedTextSegment(usize)
Compilation is too big to fit
Trait Implementations
impl<E: Debug + UserDefinedError> Debug for EbpfError<E>
[src]
impl<E: Debug + UserDefinedError> Debug for EbpfError<E>
[src]impl<E: UserDefinedError> Display for EbpfError<E>
[src]
impl<E: UserDefinedError> Display for EbpfError<E>
[src]impl<E: UserDefinedError> Error for EbpfError<E>
[src]
impl<E: UserDefinedError> Error for EbpfError<E>
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl<E: UserDefinedError> From<E> for EbpfError<E>
[src]
impl<E: UserDefinedError> From<E> for EbpfError<E>
[src]impl<E: UserDefinedError> From<ElfError> for EbpfError<E>
[src]
impl<E: UserDefinedError> From<ElfError> for EbpfError<E>
[src]impl<E: UserDefinedError> From<Error> for EbpfError<E>
[src]
impl<E: UserDefinedError> From<Error> for EbpfError<E>
[src]fn from(error: GoblinError) -> Self
[src]
fn from(error: GoblinError) -> Self
[src]Performs the conversion.
impl<E: Eq + UserDefinedError> Eq for EbpfError<E>
[src]
impl<E: UserDefinedError> StructuralEq for EbpfError<E>
[src]
impl<E: UserDefinedError> StructuralPartialEq for EbpfError<E>
[src]
Auto Trait Implementations
impl<E> RefUnwindSafe for EbpfError<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for EbpfError<E> where
E: Send,
E: Send,
impl<E> Sync for EbpfError<E> where
E: Sync,
E: Sync,
impl<E> Unpin for EbpfError<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for EbpfError<E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,