Struct holochain_p2p::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§
source§impl Clone for GetActivityOptions
impl Clone for GetActivityOptions
source§fn clone(&self) -> GetActivityOptions
fn clone(&self) -> GetActivityOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetActivityOptions
impl Debug for GetActivityOptions
source§impl Default for GetActivityOptions
impl Default for GetActivityOptions
source§impl From<&GetActivityOptions> for GetActivityOptions
impl From<&GetActivityOptions> for GetActivityOptions
source§fn from(a: &GetActivityOptions) -> Self
fn from(a: &GetActivityOptions) -> Self
Auto Trait Implementations§
impl Freeze for GetActivityOptions
impl RefUnwindSafe for GetActivityOptions
impl Send for GetActivityOptions
impl Sync for GetActivityOptions
impl Unpin for GetActivityOptions
impl UnwindSafe for GetActivityOptions
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moresource§fn 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).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.