Trait ibc::ics04_channel::context::ChannelKeeper[][src]

pub trait ChannelKeeper {
    fn store_packet_commitment(
        &mut self,
        key: (PortId, ChannelId, Sequence),
        timestamp: u64,
        heigh: Height,
        data: Vec<u8>
    ) -> Result<(), Error>;
fn delete_packet_commitment(
        &mut self,
        key: (PortId, ChannelId, Sequence)
    ) -> Result<(), Error>;
fn store_packet_receipt(
        &mut self,
        key: (PortId, ChannelId, Sequence),
        receipt: Receipt
    ) -> Result<(), Error>;
fn store_packet_acknowledgement(
        &mut self,
        key: (PortId, ChannelId, Sequence),
        ack: Vec<u8>
    ) -> Result<(), Error>;
fn delete_packet_acknowledgement(
        &mut self,
        key: (PortId, ChannelId, Sequence)
    ) -> Result<(), Error>;
fn store_connection_channels(
        &mut self,
        conn_id: ConnectionId,
        port_channel_id: &(PortId, ChannelId)
    ) -> Result<(), Error>;
fn store_channel(
        &mut self,
        port_channel_id: (PortId, ChannelId),
        channel_end: &ChannelEnd
    ) -> Result<(), Error>;
fn store_next_sequence_send(
        &mut self,
        port_channel_id: (PortId, ChannelId),
        seq: Sequence
    ) -> Result<(), Error>;
fn store_next_sequence_recv(
        &mut self,
        port_channel_id: (PortId, ChannelId),
        seq: Sequence
    ) -> Result<(), Error>;
fn store_next_sequence_ack(
        &mut self,
        port_channel_id: (PortId, ChannelId),
        seq: Sequence
    ) -> Result<(), Error>;
fn increase_channel_counter(&mut self); fn store_channel_result(
        &mut self,
        result: ChannelResult
    ) -> Result<(), Error> { ... }
fn store_packet_result(
        &mut self,
        general_result: PacketResult
    ) -> Result<(), Error> { ... } }

A context supplying all the necessary write-only dependencies (i.e., storage writing facility) for processing any ChannelMsg.

Required methods

fn store_packet_commitment(
    &mut self,
    key: (PortId, ChannelId, Sequence),
    timestamp: u64,
    heigh: Height,
    data: Vec<u8>
) -> Result<(), Error>
[src]

fn delete_packet_commitment(
    &mut self,
    key: (PortId, ChannelId, Sequence)
) -> Result<(), Error>
[src]

fn store_packet_receipt(
    &mut self,
    key: (PortId, ChannelId, Sequence),
    receipt: Receipt
) -> Result<(), Error>
[src]

fn store_packet_acknowledgement(
    &mut self,
    key: (PortId, ChannelId, Sequence),
    ack: Vec<u8>
) -> Result<(), Error>
[src]

fn delete_packet_acknowledgement(
    &mut self,
    key: (PortId, ChannelId, Sequence)
) -> Result<(), Error>
[src]

fn store_connection_channels(
    &mut self,
    conn_id: ConnectionId,
    port_channel_id: &(PortId, ChannelId)
) -> Result<(), Error>
[src]

fn store_channel(
    &mut self,
    port_channel_id: (PortId, ChannelId),
    channel_end: &ChannelEnd
) -> Result<(), Error>
[src]

Stores the given channel_end at a path associated with the port_id and channel_id.

fn store_next_sequence_send(
    &mut self,
    port_channel_id: (PortId, ChannelId),
    seq: Sequence
) -> Result<(), Error>
[src]

fn store_next_sequence_recv(
    &mut self,
    port_channel_id: (PortId, ChannelId),
    seq: Sequence
) -> Result<(), Error>
[src]

fn store_next_sequence_ack(
    &mut self,
    port_channel_id: (PortId, ChannelId),
    seq: Sequence
) -> Result<(), Error>
[src]

fn increase_channel_counter(&mut self)[src]

Called upon channel identifier creation (Init or Try message processing). Increases the counter which keeps track of how many channels have been created. Should never fail.

Loading content...

Provided methods

fn store_channel_result(&mut self, result: ChannelResult) -> Result<(), Error>[src]

fn store_packet_result(
    &mut self,
    general_result: PacketResult
) -> Result<(), Error>
[src]

Loading content...

Implementors

Loading content...