Trait holochain_p2p::actor::HolochainP2pRefToDna

source ·
pub trait HolochainP2pRefToDna {
    // Required methods
    fn into_dna(
        self,
        dna_hash: DnaHash,
        chc: Option<ChcImpl>
    ) -> HolochainP2pDna;
    fn to_dna(&self, dna_hash: DnaHash, chc: Option<ChcImpl>) -> HolochainP2pDna;
}
Expand description

Extension trait for converting GhostSender<HolochainP2p> into HolochainP2pDna

Required Methods§

source

fn into_dna(self, dna_hash: DnaHash, chc: Option<ChcImpl>) -> HolochainP2pDna

Partially apply dna_hash && agent_pub_key to this sender, binding it to a specific dna context.

source

fn to_dna(&self, dna_hash: DnaHash, chc: Option<ChcImpl>) -> HolochainP2pDna

Clone and partially apply dna_hash && agent_pub_key to this sender, binding it to a specific dna context.

Implementors§