Enum ibc::primitives::Expiry
source · pub enum Expiry {
Expired,
NotExpired,
InvalidTimestamp,
}
Expand description
The expiry result when comparing two timestamps.
- If either timestamp is invalid (0), the result is
InvalidTimestamp
. - If the left timestamp is strictly after the right timestamp, the result is
Expired
. - Otherwise, the result is
NotExpired
.
User of this result may want to determine whether error should be raised, when either of the timestamp being compared is invalid.
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Expiry
impl<'de> Deserialize<'de> for Expiry
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Expiry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Expiry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Expiry
impl PartialEq for Expiry
source§impl Serialize for Expiry
impl Serialize for Expiry
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Expiry
impl Eq for Expiry
impl StructuralPartialEq for Expiry
Auto Trait Implementations§
impl Freeze for Expiry
impl RefUnwindSafe for Expiry
impl Send for Expiry
impl Sync for Expiry
impl Unpin for Expiry
impl UnwindSafe for Expiry
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