Struct anchor_lang::error::ProgramErrorWithOrigin
source · [−]pub struct ProgramErrorWithOrigin {
pub program_error: ProgramError,
pub error_origin: Option<ErrorOrigin>,
pub compared_values: Option<ComparedValues>,
}
Fields
program_error: ProgramError
error_origin: Option<ErrorOrigin>
compared_values: Option<ComparedValues>
Implementations
sourceimpl ProgramErrorWithOrigin
impl ProgramErrorWithOrigin
pub fn log(&self)
pub fn with_source(self, source: Source) -> Self
pub fn with_account_name(self, account_name: impl ToString) -> Self
Trait Implementations
sourceimpl Debug for ProgramErrorWithOrigin
impl Debug for ProgramErrorWithOrigin
sourceimpl Display for ProgramErrorWithOrigin
impl Display for ProgramErrorWithOrigin
sourceimpl From<ProgramError> for ProgramErrorWithOrigin
impl From<ProgramError> for ProgramErrorWithOrigin
sourcefn from(program_error: ProgramError) -> Self
fn from(program_error: ProgramError) -> Self
Converts to this type from the input type.
sourceimpl From<ProgramErrorWithOrigin> for Error
impl From<ProgramErrorWithOrigin> for Error
sourcefn from(pe: ProgramErrorWithOrigin) -> Self
fn from(pe: ProgramErrorWithOrigin) -> Self
Converts to this type from the input type.
impl Eq for ProgramErrorWithOrigin
Auto Trait Implementations
impl RefUnwindSafe for ProgramErrorWithOrigin
impl Send for ProgramErrorWithOrigin
impl Sync for ProgramErrorWithOrigin
impl Unpin for ProgramErrorWithOrigin
impl UnwindSafe for ProgramErrorWithOrigin
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more