Struct holochain::prelude::actor::GetActivityOptions
source · 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_actions: 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 records in parallel. For a small dht a large parallel get can overwhelm a single agent and it can be worth retrying the records that didn’t get found.
include_valid_activity: bool
[Remote]
Include the all valid activity actions in the response.
If this is false the call becomes a lightweight response with
just the chain status and highest observed action.
This is useful when you want to ask an authority about the
status of a chain but do not need all the actions.
include_rejected_activity: bool
Include any rejected actions in the response.
include_full_actions: bool
Include the full signed actions and hashes in the response instead of just the hashes.
Trait Implementations
sourceimpl Clone for GetActivityOptions
impl Clone for GetActivityOptions
sourcefn clone(&self) -> GetActivityOptions
fn clone(&self) -> GetActivityOptions
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for GetActivityOptions
impl Debug for GetActivityOptions
sourceimpl Default for GetActivityOptions
impl Default for GetActivityOptions
sourcefn default() -> GetActivityOptions
fn default() -> GetActivityOptions
sourceimpl From<&GetActivityOptions> for GetActivityOptions
impl From<&GetActivityOptions> for GetActivityOptions
sourcefn from(a: &GetActivityOptions) -> GetActivityOptions
fn from(a: &GetActivityOptions) -> GetActivityOptions
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
impl<T> Any for Twhere
T: Any + ?Sized,
impl<T> Any for Twhere
T: Any + ?Sized,
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
impl<T> FutureExt for T
impl<T> FutureExt for T
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> ⓘ
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
sourcefn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
sourcefn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.