Trait holochain::prelude::actor::HolochainP2pRefToDna
source · pub trait HolochainP2pRefToDna {
fn into_dna(
self,
dna_hash: HoloHash<Dna>,
chc: Option<Arc<dyn ChainHeadCoordinator<Item = SignedHashed<Action>> + Send + Sync + 'static>>
) -> HolochainP2pDna;
fn to_dna(
&self,
dna_hash: HoloHash<Dna>,
chc: Option<Arc<dyn ChainHeadCoordinator<Item = SignedHashed<Action>> + Send + Sync + 'static>>
) -> HolochainP2pDna;
}
Expand description
Extension trait for converting GhostSender<HolochainP2p>
into HolochainP2pDna
Required Methods§
sourcefn into_dna(
self,
dna_hash: HoloHash<Dna>,
chc: Option<Arc<dyn ChainHeadCoordinator<Item = SignedHashed<Action>> + Send + Sync + 'static>>
) -> HolochainP2pDna
fn into_dna(
self,
dna_hash: HoloHash<Dna>,
chc: Option<Arc<dyn ChainHeadCoordinator<Item = SignedHashed<Action>> + Send + Sync + 'static>>
) -> HolochainP2pDna
Partially apply dna_hash && agent_pub_key to this sender, binding it to a specific dna context.
sourcefn to_dna(
&self,
dna_hash: HoloHash<Dna>,
chc: Option<Arc<dyn ChainHeadCoordinator<Item = SignedHashed<Action>> + Send + Sync + 'static>>
) -> HolochainP2pDna
fn to_dna(
&self,
dna_hash: HoloHash<Dna>,
chc: Option<Arc<dyn ChainHeadCoordinator<Item = SignedHashed<Action>> + Send + Sync + 'static>>
) -> HolochainP2pDna
Clone and partially apply dna_hash && agent_pub_key to this sender, binding it to a specific dna context.