Enum solana_bpf_loader_program::BpfError[][src]

pub enum BpfError {
    VerifierError(VerifierError),
    SyscallError(SyscallError),
}
Expand description

Errors returned by functions the BPF Loader registers with the VM

Variants

VerifierError(VerifierError)
SyscallError(SyscallError)

Trait Implementations

impl Debug for BpfError[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Display for BpfError[src]

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Error for BpfError[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]

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

fn description(&self) -> &str1.0.0[src]

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

fn cause(&self) -> Option<&dyn Error>1.0.0[src]

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

impl From<SyscallError> for BpfError[src]

fn from(source: SyscallError) -> Self[src]

Performs the conversion.

impl From<VerifierError> for BpfError[src]

fn from(source: VerifierError) -> Self[src]

Performs the conversion.

impl PartialEq<BpfError> for BpfError[src]

fn eq(&self, other: &BpfError) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &BpfError) -> bool[src]

This method tests for !=.

impl SyscallObject<BpfError> for SyscallAbort[src]

fn call(
    &mut self,
    _arg1: u64,
    _arg2: u64,
    _arg3: u64,
    _arg4: u64,
    _arg5: u64,
    _memory_mapping: &MemoryMapping<'_>,
    result: &mut Result<u64, EbpfError<BpfError>>
)
[src]

Call the syscall function

impl<'a> SyscallObject<BpfError> for SyscallPanic<'a>[src]

fn call(
    &mut self,
    file: u64,
    len: u64,
    line: u64,
    column: u64,
    _arg5: u64,
    memory_mapping: &MemoryMapping<'_>,
    result: &mut Result<u64, EbpfError<BpfError>>
)
[src]

Call the syscall function

impl<'a> SyscallObject<BpfError> for SyscallInvokeSignedC<'a>[src]

fn call(
    &mut self,
    instruction_addr: u64,
    account_infos_addr: u64,
    account_infos_len: u64,
    signers_seeds_addr: u64,
    signers_seeds_len: u64,
    memory_mapping: &MemoryMapping<'_>,
    result: &mut Result<u64, EbpfError<BpfError>>
)
[src]

Call the syscall function

impl<'a> SyscallObject<BpfError> for SyscallLog<'a>[src]

fn call(
    &mut self,
    addr: u64,
    len: u64,
    _arg3: u64,
    _arg4: u64,
    _arg5: u64,
    memory_mapping: &MemoryMapping<'_>,
    result: &mut Result<u64, EbpfError<BpfError>>
)
[src]

Call the syscall function

impl SyscallObject<BpfError> for SyscallLogU64[src]

fn call(
    &mut self,
    arg1: u64,
    arg2: u64,
    arg3: u64,
    arg4: u64,
    arg5: u64,
    _memory_mapping: &MemoryMapping<'_>,
    result: &mut Result<u64, EbpfError<BpfError>>
)
[src]

Call the syscall function

impl SyscallObject<BpfError> for SyscallLogBpfComputeUnits[src]

fn call(
    &mut self,
    _arg1: u64,
    _arg2: u64,
    _arg3: u64,
    _arg4: u64,
    _arg5: u64,
    _memory_mapping: &MemoryMapping<'_>,
    result: &mut Result<u64, EbpfError<BpfError>>
)
[src]

Call the syscall function

impl<'a> SyscallObject<BpfError> for SyscallLogPubkey<'a>[src]

fn call(
    &mut self,
    pubkey_addr: u64,
    _arg2: u64,
    _arg3: u64,
    _arg4: u64,
    _arg5: u64,
    memory_mapping: &MemoryMapping<'_>,
    result: &mut Result<u64, EbpfError<BpfError>>
)
[src]

Call the syscall function

impl SyscallObject<BpfError> for SyscallAllocFree[src]

fn call(
    &mut self,
    size: u64,
    free_addr: u64,
    _arg3: u64,
    _arg4: u64,
    _arg5: u64,
    _memory_mapping: &MemoryMapping<'_>,
    result: &mut Result<u64, EbpfError<BpfError>>
)
[src]

Call the syscall function

impl<'a> SyscallObject<BpfError> for SyscallSha256<'a>[src]

fn call(
    &mut self,
    vals_addr: u64,
    vals_len: u64,
    result_addr: u64,
    _arg4: u64,
    _arg5: u64,
    memory_mapping: &MemoryMapping<'_>,
    result: &mut Result<u64, EbpfError<BpfError>>
)
[src]

Call the syscall function

impl<'a> SyscallObject<BpfError> for SyscallKeccak256<'a>[src]

fn call(
    &mut self,
    vals_addr: u64,
    vals_len: u64,
    result_addr: u64,
    _arg4: u64,
    _arg5: u64,
    memory_mapping: &MemoryMapping<'_>,
    result: &mut Result<u64, EbpfError<BpfError>>
)
[src]

Call the syscall function

impl<'a> SyscallObject<BpfError> for SyscallInvokeSignedRust<'a>[src]

fn call(
    &mut self,
    instruction_addr: u64,
    account_infos_addr: u64,
    account_infos_len: u64,
    signers_seeds_addr: u64,
    signers_seeds_len: u64,
    memory_mapping: &MemoryMapping<'_>,
    result: &mut Result<u64, EbpfError<BpfError>>
)
[src]

Call the syscall function

impl StructuralPartialEq for BpfError[src]

impl UserDefinedError for BpfError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> AbiExample for T

pub default fn example() -> T

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> AsFail for T where
    T: Fail, 

pub fn as_fail(&self) -> &(dyn Fail + 'static)

Converts a reference to Self into a dynamic trait object of Fail.

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

fn name(&self) -> Option<&str>

Returns the “name” of the error. Read more

fn cause(&self) -> Option<&(dyn Fail + 'static)>

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

fn backtrace(&self) -> Option<&Backtrace>

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

fn context<D>(self, context: D) -> Context<D> where
    D: Display + Send + Sync + 'static, 

Provides context for this failure. Read more

fn compat(self) -> Compat<Self>

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

impl<T> Same<T> for T

type Output = T

Should always be Self

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

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V