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§
Source§impl Error for BpfError
impl Error for BpfError
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()
Source§impl From<SyscallError> for BpfError
impl From<SyscallError> for BpfError
Source§fn from(source: SyscallError) -> Self
fn from(source: SyscallError) -> Self
Converts to this type from the input type.
Source§impl From<VerifierError> for BpfError
impl From<VerifierError> for BpfError
Source§fn from(source: VerifierError) -> Self
fn from(source: VerifierError) -> Self
Converts to this type from the input type.
Source§impl SyscallObject<BpfError> for SyscallAbort
impl SyscallObject<BpfError> for SyscallAbort
Source§impl SyscallObject<BpfError> for SyscallAllocFree
impl SyscallObject<BpfError> for SyscallAllocFree
Source§impl<'a> SyscallObject<BpfError> for SyscallBlake3<'a>
impl<'a> SyscallObject<BpfError> for SyscallBlake3<'a>
Source§impl<'a> SyscallObject<BpfError> for SyscallGetReturnData<'a>
impl<'a> SyscallObject<BpfError> for SyscallGetReturnData<'a>
Source§impl<'a> SyscallObject<BpfError> for SyscallInvokeSignedC<'a>
impl<'a> SyscallObject<BpfError> for SyscallInvokeSignedC<'a>
Source§impl<'a> SyscallObject<BpfError> for SyscallInvokeSignedRust<'a>
impl<'a> SyscallObject<BpfError> for SyscallInvokeSignedRust<'a>
Source§impl<'a> SyscallObject<BpfError> for SyscallKeccak256<'a>
impl<'a> SyscallObject<BpfError> for SyscallKeccak256<'a>
Source§impl<'a> SyscallObject<BpfError> for SyscallLog<'a>
impl<'a> SyscallObject<BpfError> for SyscallLog<'a>
Source§impl<'a> SyscallObject<BpfError> for SyscallLogData<'a>
impl<'a> SyscallObject<BpfError> for SyscallLogData<'a>
Source§impl<'a> SyscallObject<BpfError> for SyscallLogPubkey<'a>
impl<'a> SyscallObject<BpfError> for SyscallLogPubkey<'a>
Source§impl SyscallObject<BpfError> for SyscallLogU64
impl SyscallObject<BpfError> for SyscallLogU64
Source§impl<'a> SyscallObject<BpfError> for SyscallMemcmp<'a>
impl<'a> SyscallObject<BpfError> for SyscallMemcmp<'a>
Source§impl<'a> SyscallObject<BpfError> for SyscallMemcpy<'a>
impl<'a> SyscallObject<BpfError> for SyscallMemcpy<'a>
Source§impl<'a> SyscallObject<BpfError> for SyscallMemmove<'a>
impl<'a> SyscallObject<BpfError> for SyscallMemmove<'a>
Source§impl<'a> SyscallObject<BpfError> for SyscallMemset<'a>
impl<'a> SyscallObject<BpfError> for SyscallMemset<'a>
Source§impl<'a> SyscallObject<BpfError> for SyscallPanic<'a>
impl<'a> SyscallObject<BpfError> for SyscallPanic<'a>
Source§impl<'a> SyscallObject<BpfError> for SyscallSecp256k1Recover<'a>
impl<'a> SyscallObject<BpfError> for SyscallSecp256k1Recover<'a>
Source§impl<'a> SyscallObject<BpfError> for SyscallSetReturnData<'a>
impl<'a> SyscallObject<BpfError> for SyscallSetReturnData<'a>
Source§impl<'a> SyscallObject<BpfError> for SyscallSha256<'a>
impl<'a> SyscallObject<BpfError> for SyscallSha256<'a>
impl StructuralPartialEq for BpfError
impl UserDefinedError for BpfError
Auto Trait Implementations§
impl Freeze for BpfError
impl RefUnwindSafe for BpfError
impl Send for BpfError
impl Sync for BpfError
impl Unpin for BpfError
impl UnwindSafe for BpfError
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
Source§impl<E> Fail for E
impl<E> Fail for E
Source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
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
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more