pub enum BuildError {
UnknownInstruction,
ArgCountMismatch {
expected: usize,
got: usize,
},
ArgSizeMismatch {
index: usize,
expected: u16,
got: usize,
},
AccountCountMismatch {
expected: usize,
got: usize,
},
}Expand description
Builder error surface.
Variants§
UnknownInstruction
No instruction by that name in the manifest.
ArgCountMismatch
Caller supplied a different number of args than the manifest declares.
ArgSizeMismatch
One of the caller’s arg byte slices was the wrong size.
Fields
AccountCountMismatch
Caller supplied a different number of accounts than the manifest declares for this instruction.
Trait Implementations§
Source§impl Clone for BuildError
impl Clone for BuildError
Source§fn clone(&self) -> BuildError
fn clone(&self) -> BuildError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuildError
impl Debug for BuildError
Source§impl PartialEq for BuildError
impl PartialEq for BuildError
Source§fn eq(&self, other: &BuildError) -> bool
fn eq(&self, other: &BuildError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BuildError
impl Eq for BuildError
impl StructuralPartialEq for BuildError
Auto Trait Implementations§
impl Freeze for BuildError
impl RefUnwindSafe for BuildError
impl Send for BuildError
impl Sync for BuildError
impl Unpin for BuildError
impl UnsafeUnpin for BuildError
impl UnwindSafe for BuildError
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