Trait CanCalculateIbcTransferTimeout

Source
pub trait CanCalculateIbcTransferTimeout: HasTimestampType + HasHeightType {
    // Required methods
    fn ibc_transfer_timeout_time(
        &self,
        current_time: &Self::Timestamp,
    ) -> Option<Self::Timestamp>;
    fn ibc_transfer_timeout_height(
        &self,
        current_height: &Self::Height,
    ) -> Option<Self::Height>;
}

Required Methods§

Source

fn ibc_transfer_timeout_time( &self, current_time: &Self::Timestamp, ) -> Option<Self::Timestamp>

Source

fn ibc_transfer_timeout_height( &self, current_height: &Self::Height, ) -> Option<Self::Height>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<ChainDriver> CanCalculateIbcTransferTimeout for ChainDriver
where ChainDriver: HasTimestampType + HasHeightType + HasComponents, ChainDriver::Components: IbcTransferTimeoutCalculator<ChainDriver>,