pub struct DeployExcessiveSizeError {
pub max_transaction_size: u32,
pub actual_deploy_size: usize,
}
Expand description
Error returned when a Deploy is too large.
Fields§
§max_transaction_size: u32
The maximum permitted serialized deploy size, in bytes.
actual_deploy_size: usize
The serialized size of the deploy provided, in bytes.
Trait Implementations§
Source§impl Clone for ExcessiveSizeError
impl Clone for ExcessiveSizeError
Source§fn clone(&self) -> ExcessiveSizeError
fn clone(&self) -> ExcessiveSizeError
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 DataSize for ExcessiveSizeError
impl DataSize for ExcessiveSizeError
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 ExcessiveSizeError
impl Debug for ExcessiveSizeError
Source§impl Default for ExcessiveSizeError
impl Default for ExcessiveSizeError
Source§fn default() -> ExcessiveSizeError
fn default() -> ExcessiveSizeError
Returns the “default value” for a type. Read more
Source§impl Display for ExcessiveSizeError
impl Display for ExcessiveSizeError
Source§impl Error for ExcessiveSizeError
Available on crate feature std
only.
impl Error for ExcessiveSizeError
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<ExcessiveSizeError> for InvalidDeploy
impl From<ExcessiveSizeError> for InvalidDeploy
Source§fn from(error: ExcessiveSizeError) -> Self
fn from(error: ExcessiveSizeError) -> Self
Converts to this type from the input type.
Source§impl Hash for ExcessiveSizeError
impl Hash for ExcessiveSizeError
Source§impl Ord for ExcessiveSizeError
impl Ord for ExcessiveSizeError
Source§fn cmp(&self, other: &ExcessiveSizeError) -> Ordering
fn cmp(&self, other: &ExcessiveSizeError) -> 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 ExcessiveSizeError
impl PartialEq for ExcessiveSizeError
Source§impl PartialOrd for ExcessiveSizeError
impl PartialOrd for ExcessiveSizeError
Source§impl Serialize for ExcessiveSizeError
impl Serialize for ExcessiveSizeError
impl Eq for ExcessiveSizeError
impl StructuralPartialEq for ExcessiveSizeError
Auto Trait Implementations§
impl Freeze for ExcessiveSizeError
impl RefUnwindSafe for ExcessiveSizeError
impl Send for ExcessiveSizeError
impl Sync for ExcessiveSizeError
impl Unpin for ExcessiveSizeError
impl UnwindSafe for ExcessiveSizeError
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