pub async fn open(
        &mut self,
        key: &PublicKey,
        replica: Box<dyn ReplicaTrait + Send>,
        ) -> Result<()>
    {
        let cmd = Command::Open(key.clone(), replica);
        self.tx.send(cmd)
            .await.map_err(|_| anyhow!("Error sending command."))
    }
/// Open a new channel with [ReplicaTrait].
Open a new channel with [ReplicaTrait].
Open a new channel with [ ReplicaTrait ] .
pub async fn open(
        &mut self,
        key: &PublicKey,
        replica: Box<dyn ReplicaTrait + Send>,
        ) -> Result<()>
    {
        let cmd = Command::Open(key.clone(), replica);
        self.tx.send(cmd)
            .await.map_err(|_| anyhow!("Error sending command."))
    }
pub async fn open ( & mut self , key : & PublicKey , replica : Box < dyn ReplicaTrait + Send > , ) -> Result < ( ) > { let cmd = Command :: Open ( key . clone ( ) , replica ) ; self . tx . send ( cmd ) . await . map_err ( | _ | anyhow ! ( " " ) ) }
Open a new channel with [ReplicaTrait].
Open a new channel with [ ReplicaTrait ] .
&mut self
key
&PublicKey
replica
Box<dyn ReplicaTrait + Send>
&mut self
key
&PublicKey
replica
Box<dyn ReplicaTrait + Send>