pub struct WaitWeight {
pub wait_sec: u32,
pub weight: u16,
}Expand description
WaitWeight associates a wait time (in seconds) with a Weight.
Fields§
§wait_sec: u32§weight: u16Trait Implementations§
Source§impl Clone for WaitWeight
impl Clone for WaitWeight
Source§fn clone(&self) -> WaitWeight
fn clone(&self) -> WaitWeight
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 Debug for WaitWeight
impl Debug for WaitWeight
Source§impl Default for WaitWeight
impl Default for WaitWeight
Source§fn default() -> WaitWeight
fn default() -> WaitWeight
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WaitWeight
impl<'de> Deserialize<'de> for WaitWeight
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Packer for WaitWeight
impl Packer for WaitWeight
Auto Trait Implementations§
impl Freeze for WaitWeight
impl RefUnwindSafe for WaitWeight
impl Send for WaitWeight
impl Sync for WaitWeight
impl Unpin for WaitWeight
impl UnwindSafe for WaitWeight
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