Struct switchboard_solana::prelude::AnchorError
pub struct AnchorError {
pub error_name: String,
pub error_code_number: u32,
pub error_msg: String,
pub error_origin: Option<ErrorOrigin>,
pub compared_values: Option<ComparedValues>,
}
Fields§
§error_name: String
§error_code_number: u32
§error_msg: String
§error_origin: Option<ErrorOrigin>
§compared_values: Option<ComparedValues>
Implementations§
§impl AnchorError
impl AnchorError
pub fn log(&self)
pub fn with_source(self, source: Source) -> AnchorError
pub fn with_account_name(self, account_name: impl ToString) -> AnchorError
Trait Implementations§
§impl Debug for AnchorError
impl Debug for AnchorError
§impl Display for AnchorError
impl Display for AnchorError
§impl From<AnchorError> for Error
impl From<AnchorError> for Error
§fn from(ae: AnchorError) -> Error
fn from(ae: AnchorError) -> Error
Converts to this type from the input type.
§impl PartialEq for AnchorError
impl PartialEq for AnchorError
Two AnchorError
s are equal when they have the same error code
§fn eq(&self, other: &AnchorError) -> bool
fn eq(&self, other: &AnchorError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AnchorError
Auto Trait Implementations§
impl RefUnwindSafe for AnchorError
impl Send for AnchorError
impl Sync for AnchorError
impl Unpin for AnchorError
impl UnwindSafe for AnchorError
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.