Enum cw_utils::Duration [−][src]
Expand description
Duration is a delta of time. You can add it to a BlockInfo or Expiration to move that further in the future. Note that an height-based Duration and a time-based Expiration cannot be combined
Variants
Height(u64)
Tuple Fields
0: u64
Time(u64)
Tuple Fields
0: u64
Time in seconds
Implementations
Trait Implementations
type Output = StdResult<Expiration>
type Output = StdResult<Expiration>
The resulting type after applying the +
operator.
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
Auto Trait Implementations
impl RefUnwindSafe for Duration
impl UnwindSafe for Duration
Blanket Implementations
Mutably borrows from an owned value. Read more