pub enum Error {
InvalidAccountData,
Winternitz(WinternitzError),
RootMismatch,
SignerPositionMismatch {
expected: (u32, u32, u32),
actual: (u32, u32, u32),
},
PositionOverflow,
PayloadTooLarge(&'static str),
TransactionTooLarge {
estimated: usize,
limit: usize,
},
UnsupportedTransaction(&'static str),
}Expand description
Errors returned by the WinterWallet client.
Variants§
InvalidAccountData
Account data is missing, too short, or has an unexpected layout.
Winternitz(WinternitzError)
A Winternitz cryptographic operation failed.
RootMismatch
The on-chain root does not match the expected local root.
SignerPositionMismatch
The signer is not at the position expected by the planned operation.
Fields
PositionOverflow
The next signing position cannot be represented.
PayloadTooLarge(&'static str)
The CPI payload exceeds on-chain limits.
TransactionTooLarge
The estimated transaction size exceeds the Solana limit.
UnsupportedTransaction(&'static str)
The requested transaction shape is outside the supported legacy builder.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§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 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<WinternitzError> for Error
impl From<WinternitzError> for Error
Source§fn from(e: WinternitzError) -> Self
fn from(e: WinternitzError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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