pub struct Weight {
pub ref_time: u64,
pub proof_size: u64,
}
Expand description
Represents the computational time and storage space required for an operation.
Fields§
§ref_time: u64
The weight of computational time used based on some reference hardware.
proof_size: u64
The weight of storage space used by proof of validity.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Weight
impl RefUnwindSafe for Weight
impl Send for Weight
impl Sync for Weight
impl Unpin for Weight
impl UnwindSafe for Weight
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