pub enum HolochainP2p {
Show 17 variants Join { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<(), HolochainP2pError>>, HolochainP2pError>>, dna_hash: HoloHash<Dna>, agent_pub_key: HoloHash<Agent>, initial_arc: Option<DhtArc>, }, Leave { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<(), HolochainP2pError>>, HolochainP2pError>>, dna_hash: HoloHash<Dna>, agent_pub_key: HoloHash<Agent>, }, CallRemote { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<SerializedBytes, HolochainP2pError>>, HolochainP2pError>>, dna_hash: HoloHash<Dna>, from_agent: HoloHash<Agent>, signature: Signature, to_agent: HoloHash<Agent>, zome_name: ZomeName, fn_name: FunctionName, cap_secret: Option<CapSecret>, payload: ExternIO, nonce: Nonce256Bits, expires_at: Timestamp, }, RemoteSignal { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<(), HolochainP2pError>>, HolochainP2pError>>, dna_hash: HoloHash<Dna>, from_agent: HoloHash<Agent>, to_agent_list: Vec<(Signature, HoloHash<Agent>), Global>, zome_name: ZomeName, fn_name: FunctionName, cap: Option<CapSecret>, payload: ExternIO, nonce: Nonce256Bits, expires_at: Timestamp, }, Publish { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<(), HolochainP2pError>>, HolochainP2pError>>, dna_hash: HoloHash<Dna>, request_validation_receipt: bool, countersigning_session: bool, basis_hash: HoloHash<AnyLinkable>, source: HoloHash<Agent>, op_hash_list: Vec<RoughSized<Arc<KitsuneOpHash>>, Global>, timeout_ms: Option<u64>, reflect_ops: Option<Vec<DhtOp, Global>>, }, PublishCountersign { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<(), HolochainP2pError>>, HolochainP2pError>>, dna_hash: HoloHash<Dna>, flag: bool, basis_hash: HoloHash<AnyLinkable>, op: DhtOp, }, Get { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<Vec<WireOps, Global>, HolochainP2pError>>, HolochainP2pError>>, dna_hash: HoloHash<Dna>, dht_hash: HoloHash<AnyDht>, options: GetOptions, }, GetMeta { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<Vec<MetadataSet, Global>, HolochainP2pError>>, HolochainP2pError>>, dna_hash: HoloHash<Dna>, dht_hash: HoloHash<AnyDht>, options: GetMetaOptions, }, GetLinks { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<Vec<WireLinkOps, Global>, HolochainP2pError>>, HolochainP2pError>>, dna_hash: HoloHash<Dna>, link_key: WireLinkKey, options: GetLinksOptions, }, GetAgentActivity { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<Vec<AgentActivityResponse<HoloHash<Action>>, Global>, HolochainP2pError>>, HolochainP2pError>>, dna_hash: HoloHash<Dna>, agent: HoloHash<Agent>, query: ChainQueryFilter, options: GetActivityOptions, }, MustGetAgentActivity { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<Vec<MustGetAgentActivityResponse, Global>, HolochainP2pError>>, HolochainP2pError>>, dna_hash: HoloHash<Dna>, author: HoloHash<Agent>, filter: ChainFilter<HoloHash<Action>>, }, SendValidationReceipt { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<(), HolochainP2pError>>, HolochainP2pError>>, dna_hash: HoloHash<Dna>, to_agent: HoloHash<Agent>, receipt: SerializedBytes, }, NewIntegratedData { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<(), HolochainP2pError>>, HolochainP2pError>>, dna_hash: HoloHash<Dna>, }, AuthorityForHash { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<bool, HolochainP2pError>>, HolochainP2pError>>, dna_hash: HoloHash<Dna>, basis: HoloHash<AnyLinkable>, }, CountersigningSessionNegotiation { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<(), HolochainP2pError>>, HolochainP2pError>>, dna_hash: HoloHash<Dna>, agents: Vec<HoloHash<Agent>, Global>, message: CountersigningSessionNegotiationMessage, }, DumpNetworkMetrics { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<String, HolochainP2pError>>, HolochainP2pError>>, dna_hash: Option<HoloHash<Dna>>, }, GetDiagnostics { span_context: Context, respond: GhostRespond<Result<MustBoxFuture<'static, Result<KitsuneDiagnostics, HolochainP2pError>>, HolochainP2pError>>, dna_hash: HoloHash<Dna>, },
}
Expand description

The HolochainP2pSender struct allows controlling the HolochainP2p actor instance.

Variants§

§

Join

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<(), HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: HoloHash<Dna>

Input parameter.

§agent_pub_key: HoloHash<Agent>

Input parameter.

§initial_arc: Option<DhtArc>

Input parameter.

The p2p module must be informed at runtime which dna/agent pairs it should be tracking.

§

Leave

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<(), HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: HoloHash<Dna>

Input parameter.

§agent_pub_key: HoloHash<Agent>

Input parameter.

If a cell is disabled, we’ll need to "leave" the network module as well.

§

CallRemote

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<SerializedBytes, HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: HoloHash<Dna>

Input parameter.

§from_agent: HoloHash<Agent>

Input parameter.

§signature: Signature

Input parameter.

§to_agent: HoloHash<Agent>

Input parameter.

§zome_name: ZomeName

Input parameter.

§fn_name: FunctionName

Input parameter.

§cap_secret: Option<CapSecret>

Input parameter.

§payload: ExternIO

Input parameter.

§nonce: Nonce256Bits

Input parameter.

§expires_at: Timestamp

Input parameter.

Invoke a zome function on a remote node (if you have been granted the capability).

§

RemoteSignal

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<(), HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: HoloHash<Dna>

Input parameter.

§from_agent: HoloHash<Agent>

Input parameter.

§to_agent_list: Vec<(Signature, HoloHash<Agent>), Global>

Input parameter.

§zome_name: ZomeName

Input parameter.

§fn_name: FunctionName

Input parameter.

§cap: Option<CapSecret>

Input parameter.

§payload: ExternIO

Input parameter.

§nonce: Nonce256Bits

Input parameter.

§expires_at: Timestamp

Input parameter.

Invoke a zome function on a remote node (if you have been granted the capability). This is a fire-and-forget operation, a best effort will be made to forward the signal, but if the conductor network is overworked it may decide not to deliver some of the signals.

§

Publish

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<(), HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: HoloHash<Dna>

Input parameter.

§request_validation_receipt: bool

Input parameter.

§countersigning_session: bool

Input parameter.

§basis_hash: HoloHash<AnyLinkable>

Input parameter.

§source: HoloHash<Agent>

Input parameter.

§op_hash_list: Vec<RoughSized<Arc<KitsuneOpHash>>, Global>

Input parameter.

§timeout_ms: Option<u64>

Input parameter.

§reflect_ops: Option<Vec<DhtOp, Global>>

Input parameter.

Publish data to the correct neighborhood.

§

PublishCountersign

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<(), HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: HoloHash<Dna>

Input parameter.

§flag: bool

Input parameter.

§basis_hash: HoloHash<AnyLinkable>

Input parameter.

§op: DhtOp

Input parameter.

Publish a countersigning op.

§

Get

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<Vec<WireOps, Global>, HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: HoloHash<Dna>

Input parameter.

§dht_hash: HoloHash<AnyDht>

Input parameter.

§options: GetOptions

Input parameter.

Get an entry from the DHT.

§

GetMeta

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<Vec<MetadataSet, Global>, HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: HoloHash<Dna>

Input parameter.

§dht_hash: HoloHash<AnyDht>

Input parameter.

§options: GetMetaOptions

Input parameter.

Get metadata from the DHT.

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<Vec<WireLinkOps, Global>, HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: HoloHash<Dna>

Input parameter.

§link_key: WireLinkKey

Input parameter.

§options: GetLinksOptions

Input parameter.

Get links from the DHT.

§

GetAgentActivity

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<Vec<AgentActivityResponse<HoloHash<Action>>, Global>, HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: HoloHash<Dna>

Input parameter.

§agent: HoloHash<Agent>

Input parameter.

§query: ChainQueryFilter

Input parameter.

§options: GetActivityOptions

Input parameter.

Get agent activity from the DHT.

§

MustGetAgentActivity

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<Vec<MustGetAgentActivityResponse, Global>, HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: HoloHash<Dna>

Input parameter.

§author: HoloHash<Agent>

Input parameter.

§filter: ChainFilter<HoloHash<Action>>

Input parameter.

A remote node is requesting agent activity from us.

§

SendValidationReceipt

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<(), HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: HoloHash<Dna>

Input parameter.

§to_agent: HoloHash<Agent>

Input parameter.

§receipt: SerializedBytes

Input parameter.

Send a validation receipt to a remote node.

§

NewIntegratedData

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<(), HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: HoloHash<Dna>

Input parameter.

New data has been integrated and is ready for gossiping.

§

AuthorityForHash

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<bool, HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: HoloHash<Dna>

Input parameter.

§basis: HoloHash<AnyLinkable>

Input parameter.

Check if any local agent in this space is an authority for a hash.

§

CountersigningSessionNegotiation

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<(), HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: HoloHash<Dna>

Input parameter.

§agents: Vec<HoloHash<Agent>, Global>

Input parameter.

Messages between agents negotiation a countersigning session.

§

DumpNetworkMetrics

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<String, HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: Option<HoloHash<Dna>>

Input parameter.

Dump network metrics.

§

GetDiagnostics

Fields

§span_context: Context

Tracing span from request invocation.

§respond: GhostRespond<Result<MustBoxFuture<'static, Result<KitsuneDiagnostics, HolochainP2pError>>, HolochainP2pError>>

Response callback - respond to the request.

§dna_hash: HoloHash<Dna>

Input parameter.

Get struct for diagnostic data

Trait Implementations§

Formats the value using the given formatter. Read more
Process a dispatch event with a given GhostHandler.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Deserializes using the given deserializer

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type for metadata in pointers and references to Self.
Should always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
upcast ref
upcast mut ref
upcast boxed dyn
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more