Struct holochain_p2p::actor::GetActivityOptions [−][src]
pub struct GetActivityOptions {
pub timeout_ms: Option<u64>,
pub retry_gets: u8,
pub include_valid_activity: bool,
pub include_rejected_activity: bool,
pub include_full_headers: bool,
}
Expand description
Get agent activity from the DHT.
Fields tagged with [Network]
are network-level controls.
Fields tagged with [Remote]
are controls that will be forwarded to the
remote agent processing this GetLinks
request.
Fields
timeout_ms: Option<u64>
[Network]
Timeout to await responses for aggregation.
Set to None
for a default “best-effort”.
Note - if all requests time-out you will receive an empty result,
not a timeout error.
retry_gets: u8
Number of times to retry getting elements in parallel. For a small dht a large parallel get can overwhelm a single agent and it can be worth retrying the elements that didn’t get found.
include_valid_activity: bool
[Remote] Include the all valid activity headers in the response. If this is false the call becomes a lightweight response with just the chain status and highest observed header. This is useful when you want to ask an authority about the status of a chain but do not need all the headers.
include_rejected_activity: bool
Include any rejected headers in the response.
include_full_headers: bool
Include the full signed headers and hashes in the response instead of just the hashes.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for GetActivityOptions
impl Send for GetActivityOptions
impl Sync for GetActivityOptions
impl Unpin for GetActivityOptions
impl UnwindSafe for GetActivityOptions
Blanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
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 Read more
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
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