Type Alias holochain::prelude::HolochainP2pRef
source · pub type HolochainP2pRef = GhostSender<HolochainP2p>;
Expand description
Convenience type for referring to the HolochainP2p GhostSender
Aliased Type§
struct HolochainP2pRef(/* private fields */);
Trait Implementations§
source§impl<E> Clone for GhostSender<E>where
E: GhostEvent,
impl<E> Clone for GhostSender<E>where E: GhostEvent,
source§fn clone(&self) -> GhostSender<E>
fn clone(&self) -> GhostSender<E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<E> GhostChannelSender<E> for GhostSender<E>where
E: GhostEvent,
impl<E> GhostChannelSender<E> for GhostSender<E>where E: GhostEvent,
source§fn ghost_actor_channel_send(
&self,
event: E
) -> MustBoxFuture<'static, Result<(), GhostError>> ⓘ
fn ghost_actor_channel_send( &self, event: E ) -> MustBoxFuture<'static, Result<(), GhostError>> ⓘ
Forward a GhostEvent along this channel.
source§impl<E> GhostControlSender<E> for GhostSender<E>where
E: GhostEvent,
impl<E> GhostControlSender<E> for GhostSender<E>where E: GhostEvent,
source§fn ghost_actor_shutdown(&self) -> MustBoxFuture<'static, Result<(), GhostError>> ⓘ
fn ghost_actor_shutdown(&self) -> MustBoxFuture<'static, Result<(), GhostError>> ⓘ
Shutdown the actor once all pending messages have been processed.
Future completes when the actor is shutdown.
source§fn ghost_actor_shutdown_immediate(
&self
) -> MustBoxFuture<'static, Result<(), GhostError>> ⓘ
fn ghost_actor_shutdown_immediate( &self ) -> MustBoxFuture<'static, Result<(), GhostError>> ⓘ
Shutdown the actor immediately. All pending tasks will error.
source§fn ghost_actor_is_active(&self) -> bool
fn ghost_actor_is_active(&self) -> bool
Returns true if the receiving actor is still running.
source§impl<E> Hash for GhostSender<E>where
E: GhostEvent,
impl<E> Hash for GhostSender<E>where E: GhostEvent,
source§impl HolochainP2pRefToDna for GhostSender<HolochainP2p>
impl HolochainP2pRefToDna for GhostSender<HolochainP2p>
source§fn into_dna(
self,
dna_hash: HoloHash<Dna>,
chc: Option<Arc<dyn ChainHeadCoordinatorExt<Item = SignedHashed<Action>> + Sync + Send, Global>>
) -> HolochainP2pDna
fn into_dna( self, dna_hash: HoloHash<Dna>, chc: Option<Arc<dyn ChainHeadCoordinatorExt<Item = SignedHashed<Action>> + Sync + Send, Global>> ) -> 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: HoloHash<Dna>,
chc: Option<Arc<dyn ChainHeadCoordinatorExt<Item = SignedHashed<Action>> + Sync + Send, Global>>
) -> HolochainP2pDna
fn to_dna( &self, dna_hash: HoloHash<Dna>, chc: Option<Arc<dyn ChainHeadCoordinatorExt<Item = SignedHashed<Action>> + Sync + Send, Global>> ) -> HolochainP2pDna
Clone and partially apply dna_hash && agent_pub_key to this sender,
binding it to a specific dna context.
source§impl<E> PartialEq<GhostSender<E>> for GhostSender<E>where
E: GhostEvent,
impl<E> PartialEq<GhostSender<E>> for GhostSender<E>where E: GhostEvent,
source§fn eq(&self, o: &GhostSender<E>) -> bool
fn eq(&self, o: &GhostSender<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.