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,

source§

fn clone(&self) -> GhostSender<E>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<E> GhostChannelSender<E> for GhostSender<E>where E: GhostEvent,

source§

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,

source§

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>>

Shutdown the actor immediately. All pending tasks will error.
source§

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,

source§

fn hash<Hasher>(&self, state: &mut Hasher)where Hasher: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

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

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

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,

source§

fn eq(&self, o: &GhostSender<E>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<E> Eq for GhostSender<E>where E: GhostEvent,