Enum Program Error
pub enum ProgramError {
Capacity,
Metadata(ProgramId),
DuplicateId(ProgramId),
DuplicateAddress {
bank: u16,
number: u8,
},
Values {
program: ProgramId,
error: ParameterError,
},
}Variants§
Trait Implementations§
§impl Clone for ProgramError
impl Clone for ProgramError
§fn clone(&self) -> ProgramError
fn clone(&self) -> ProgramError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProgramError
§impl Debug for ProgramError
impl Debug for ProgramError
§impl Display for ProgramError
impl Display for ProgramError
impl Eq for ProgramError
§impl Error for ProgramError
impl Error for ProgramError
1.30.0 · §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 · §fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
§impl PartialEq for ProgramError
impl PartialEq for ProgramError
impl StructuralPartialEq for ProgramError
Auto Trait Implementations§
impl Freeze for ProgramError
impl RefUnwindSafe for ProgramError
impl Send for ProgramError
impl Sync for ProgramError
impl Unpin for ProgramError
impl UnsafeUnpin for ProgramError
impl UnwindSafe for ProgramError
Blanket Implementations§
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more