penumbra_ibc::component

Trait ChannelStateReadExt

source
pub trait ChannelStateReadExt: StateRead {
    // Provided methods
    fn get_channel_counter<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn get_channel<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        channel_id: &'life1 ChannelId,
        port_id: &'life2 PortId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ChannelEnd>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn get_recv_sequence<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        channel_id: &'life1 ChannelId,
        port_id: &'life2 PortId,
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn get_ack_sequence<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        channel_id: &'life1 ChannelId,
        port_id: &'life2 PortId,
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn get_send_sequence<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        channel_id: &'life1 ChannelId,
        port_id: &'life2 PortId,
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn seen_packet<'life0, 'life1, 'async_trait>(
        &'life0 self,
        packet: &'life1 Packet,
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn seen_packet_by_channel<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        channel_id: &'life1 ChannelId,
        port_id: &'life2 PortId,
        sequence: u64,
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn get_packet_commitment<'life0, 'life1, 'async_trait>(
        &'life0 self,
        packet: &'life1 Packet,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn get_packet_commitment_by_id<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        channel_id: &'life1 ChannelId,
        port_id: &'life2 PortId,
        sequence: u64,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn get_packet_acknowledgement<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        port_id: &'life1 PortId,
        channel_id: &'life2 ChannelId,
        sequence: u64,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}
Available on crate feature component only.

Provided Methods§

source

fn get_channel_counter<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn get_channel<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, channel_id: &'life1 ChannelId, port_id: &'life2 PortId, ) -> Pin<Box<dyn Future<Output = Result<Option<ChannelEnd>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn get_recv_sequence<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, channel_id: &'life1 ChannelId, port_id: &'life2 PortId, ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn get_ack_sequence<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, channel_id: &'life1 ChannelId, port_id: &'life2 PortId, ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn get_send_sequence<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, channel_id: &'life1 ChannelId, port_id: &'life2 PortId, ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn seen_packet<'life0, 'life1, 'async_trait>( &'life0 self, packet: &'life1 Packet, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn seen_packet_by_channel<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, channel_id: &'life1 ChannelId, port_id: &'life2 PortId, sequence: u64, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn get_packet_commitment<'life0, 'life1, 'async_trait>( &'life0 self, packet: &'life1 Packet, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn get_packet_commitment_by_id<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, channel_id: &'life1 ChannelId, port_id: &'life2 PortId, sequence: u64, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn get_packet_acknowledgement<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, port_id: &'life1 PortId, channel_id: &'life2 ChannelId, sequence: u64, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

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§