Struct cosmwasm_std::IbcTimeout 
source · pub struct IbcTimeout { /* private fields */ }Expand description
In IBC each package must set at least one type of timeout: the timestamp or the block height. Using this rather complex enum instead of two timeout fields we ensure that at least one timeout is set.
Implementations§
source§impl IbcTimeout
 
impl IbcTimeout
pub fn with_block(block: IbcTimeoutBlock) -> Self
pub fn with_timestamp(timestamp: Timestamp) -> Self
pub fn with_both(block: IbcTimeoutBlock, timestamp: Timestamp) -> Self
pub fn block(&self) -> Option<IbcTimeoutBlock>
pub fn timestamp(&self) -> Option<Timestamp>
Trait Implementations§
source§impl Clone for IbcTimeout
 
impl Clone for IbcTimeout
source§fn clone(&self) -> IbcTimeout
 
fn clone(&self) -> IbcTimeout
Returns a copy 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 IbcTimeout
 
impl Debug for IbcTimeout
source§impl<'de> Deserialize<'de> for IbcTimeout
 
impl<'de> Deserialize<'de> for IbcTimeout
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 From<IbcTimeoutBlock> for IbcTimeout
 
impl From<IbcTimeoutBlock> for IbcTimeout
source§fn from(original: IbcTimeoutBlock) -> IbcTimeout
 
fn from(original: IbcTimeoutBlock) -> IbcTimeout
Converts to this type from the input type.
source§impl From<Timestamp> for IbcTimeout
 
impl From<Timestamp> for IbcTimeout
source§fn from(timestamp: Timestamp) -> IbcTimeout
 
fn from(timestamp: Timestamp) -> IbcTimeout
Converts to this type from the input type.
source§impl JsonSchema for IbcTimeout
 
impl JsonSchema for IbcTimeout
source§fn schema_name() -> String
 
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
 
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
 
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
 
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the 
$ref keyword. Read moresource§impl PartialEq for IbcTimeout
 
impl PartialEq for IbcTimeout
source§fn eq(&self, other: &IbcTimeout) -> bool
 
fn eq(&self, other: &IbcTimeout) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl Serialize for IbcTimeout
 
impl Serialize for IbcTimeout
impl Eq for IbcTimeout
impl StructuralPartialEq for IbcTimeout
Auto Trait Implementations§
impl Freeze for IbcTimeout
impl RefUnwindSafe for IbcTimeout
impl Send for IbcTimeout
impl Sync for IbcTimeout
impl Unpin for IbcTimeout
impl UnwindSafe for IbcTimeout
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