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§
§impl ProgramErrorWithOrigin
impl ProgramErrorWithOrigin
pub fn log(&self)
pub fn with_source(self, source: Source) -> ProgramErrorWithOrigin
pub fn with_account_name( self, account_name: impl ToString ) -> ProgramErrorWithOrigin
Trait Implementations§
§impl Debug for ProgramErrorWithOrigin
impl Debug for ProgramErrorWithOrigin
§impl Display for ProgramErrorWithOrigin
impl Display for ProgramErrorWithOrigin
§impl From<ProgramError> for ProgramErrorWithOrigin
impl From<ProgramError> for ProgramErrorWithOrigin
§fn from(program_error: ProgramError) -> ProgramErrorWithOrigin
fn from(program_error: ProgramError) -> ProgramErrorWithOrigin
Converts to this type from the input type.
§impl From<ProgramErrorWithOrigin> for Error
impl From<ProgramErrorWithOrigin> for Error
§fn from(pe: ProgramErrorWithOrigin) -> Error
fn from(pe: ProgramErrorWithOrigin) -> Error
Converts to this type from the input type.
§impl PartialEq for ProgramErrorWithOrigin
impl PartialEq for ProgramErrorWithOrigin
§fn eq(&self, other: &ProgramErrorWithOrigin) -> bool
fn eq(&self, other: &ProgramErrorWithOrigin) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.