pub enum TransactionPayloadDecoderError {
PayloadTooSmall,
TooManyArguments(u8),
ExternalArgsBufferTooSmall,
OutputIndexNotFound(u8),
InvalidSlotOutputIndexSize {
output_index: u8,
size: u32,
},
InvalidSlotOutputIndexAlign {
output_index: u8,
alignment: u32,
},
AlignmentPowerTooLarge(u8),
OutputBufferTooSmall,
OutputBufferOffsetsTooSmall,
}Expand description
Errors for TransactionPayloadDecoder
Variants§
PayloadTooSmall
Payload too small
TooManyArguments(u8)
Too many arguments
ExternalArgsBufferTooSmall
ExternalArgs buffer too small
OutputIndexNotFound(u8)
Output index not found
InvalidSlotOutputIndexSize
Invalid output index size for slot
InvalidSlotOutputIndexAlign
Invalid output index alignment for slot
AlignmentPowerTooLarge(u8)
Alignment power is too large
OutputBufferTooSmall
Output buffer too small
OutputBufferOffsetsTooSmall
Output buffer offsets too small
Trait Implementations§
Source§impl Error for TransactionPayloadDecoderError
impl Error for TransactionPayloadDecoderError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for TransactionPayloadDecoderError
impl RefUnwindSafe for TransactionPayloadDecoderError
impl Send for TransactionPayloadDecoderError
impl Sync for TransactionPayloadDecoderError
impl Unpin for TransactionPayloadDecoderError
impl UnwindSafe for TransactionPayloadDecoderError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more