pub struct TransactionV1ExcessiveSizeError {
pub max_transaction_size: u32,
pub actual_transaction_size: usize,
}Expand description
Error returned when a transaction is too large.
Fields§
§max_transaction_size: u32The maximum permitted serialized transaction size, in bytes.
actual_transaction_size: usizeThe serialized size of the transaction provided, in bytes.
Trait Implementations§
Source§impl Clone for ExcessiveSizeErrorV1
impl Clone for ExcessiveSizeErrorV1
Source§fn clone(&self) -> ExcessiveSizeErrorV1
fn clone(&self) -> ExcessiveSizeErrorV1
Returns a copy 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 DataSize for ExcessiveSizeErrorV1
impl DataSize for ExcessiveSizeErrorV1
Source§const IS_DYNAMIC: bool = false
const IS_DYNAMIC: bool = false
If
true, the type has a heap size that can vary at runtime, depending on the actual value.Source§const STATIC_HEAP_SIZE: usize = 0usize
const STATIC_HEAP_SIZE: usize = 0usize
The amount of space a value of the type always occupies. If
IS_DYNAMIC is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.Source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
Estimates the size of heap memory taken up by this value. Read more
Source§impl Debug for ExcessiveSizeErrorV1
impl Debug for ExcessiveSizeErrorV1
Source§impl Default for ExcessiveSizeErrorV1
impl Default for ExcessiveSizeErrorV1
Source§fn default() -> ExcessiveSizeErrorV1
fn default() -> ExcessiveSizeErrorV1
Returns the “default value” for a type. Read more
Source§impl Display for ExcessiveSizeErrorV1
impl Display for ExcessiveSizeErrorV1
Source§impl Error for ExcessiveSizeErrorV1
Available on crate feature std only.
impl Error for ExcessiveSizeErrorV1
Available on crate feature
std only.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()
Source§impl From<ExcessiveSizeErrorV1> for InvalidTransaction
impl From<ExcessiveSizeErrorV1> for InvalidTransaction
Source§fn from(error: ExcessiveSizeErrorV1) -> Self
fn from(error: ExcessiveSizeErrorV1) -> Self
Converts to this type from the input type.
Source§impl Hash for ExcessiveSizeErrorV1
impl Hash for ExcessiveSizeErrorV1
Source§impl Ord for ExcessiveSizeErrorV1
impl Ord for ExcessiveSizeErrorV1
Source§fn cmp(&self, other: &ExcessiveSizeErrorV1) -> Ordering
fn cmp(&self, other: &ExcessiveSizeErrorV1) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ExcessiveSizeErrorV1
impl PartialEq for ExcessiveSizeErrorV1
Source§impl PartialOrd for ExcessiveSizeErrorV1
impl PartialOrd for ExcessiveSizeErrorV1
Source§impl Serialize for ExcessiveSizeErrorV1
impl Serialize for ExcessiveSizeErrorV1
impl Eq for ExcessiveSizeErrorV1
impl StructuralPartialEq for ExcessiveSizeErrorV1
Auto Trait Implementations§
impl Freeze for ExcessiveSizeErrorV1
impl RefUnwindSafe for ExcessiveSizeErrorV1
impl Send for ExcessiveSizeErrorV1
impl Sync for ExcessiveSizeErrorV1
impl Unpin for ExcessiveSizeErrorV1
impl UnwindSafe for ExcessiveSizeErrorV1
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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