pub enum RemainingError {
DuplicateAccount,
Overflow,
}Expand description
Error surface for the remaining-accounts accessor.
Variants§
DuplicateAccount
Two remaining-account slots resolved to the same address, or a remaining-account address matched an already-declared account. Only strict mode emits this.
Overflow
More than MAX_REMAINING_ACCOUNTS were accessed via the
iterator.
Trait Implementations§
Source§impl Clone for RemainingError
impl Clone for RemainingError
Source§fn clone(&self) -> RemainingError
fn clone(&self) -> RemainingError
Returns a duplicate of the value. Read more
1.0.0 · 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 RemainingError
impl Debug for RemainingError
Source§impl From<RemainingError> for ProgramError
impl From<RemainingError> for ProgramError
Source§fn from(e: RemainingError) -> Self
fn from(e: RemainingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RemainingError
impl PartialEq for RemainingError
impl Copy for RemainingError
impl Eq for RemainingError
impl StructuralPartialEq for RemainingError
Auto Trait Implementations§
impl Freeze for RemainingError
impl RefUnwindSafe for RemainingError
impl Send for RemainingError
impl Sync for RemainingError
impl Unpin for RemainingError
impl UnsafeUnpin for RemainingError
impl UnwindSafe for RemainingError
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