Trait ibc::ics03_connection::context::ConnectionKeeper[][src]

pub trait ConnectionKeeper {
    fn store_connection(
        &mut self,
        connection_id: ConnectionId,
        connection_end: &ConnectionEnd
    ) -> Result<(), Error>;
fn store_connection_to_client(
        &mut self,
        connection_id: ConnectionId,
        client_id: &ClientId
    ) -> Result<(), Error>;
fn increase_connection_counter(&mut self); fn store_connection_result(
        &mut self,
        result: ConnectionResult
    ) -> Result<(), Error> { ... } }

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

Required methods

fn store_connection(
    &mut self,
    connection_id: ConnectionId,
    connection_end: &ConnectionEnd
) -> Result<(), Error>
[src]

Stores the given connection_end at a path associated with the connection_id.

fn store_connection_to_client(
    &mut self,
    connection_id: ConnectionId,
    client_id: &ClientId
) -> Result<(), Error>
[src]

Stores the given connection_id at a path associated with the client_id.

fn increase_connection_counter(&mut self)[src]

Called upon connection identifier creation (Init or Try process). Increases the counter which keeps track of how many connections have been created. Should never fail.

Loading content...

Provided methods

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

Loading content...

Implementors

Loading content...