pub struct ObservePeer<A: Address> {
pub peer: A,
}Expand description
Ask the local interpreter to observe the exact peer incarnation selected at
peer when this request is interpreted.
PeerStopped is the pure result protocol. It arrives eventually if a
selected live incarnation later terminates, or may arrive immediately when
the interpreter has authoritative retained termination for the requested
incarnation. Absence from a live-address table is not such authority: an
interpreter that can select neither a live incarnation nor retained terminal
history must return the complete request with
PeerObservationRejection::UnknownAddress rather than fabricate a stop
result.
Fields§
§peer: AImplementations§
Trait Implementations§
Source§impl<A> ActionItem for ObservePeer<A>
Acceptance establishes the relationship and leaves unit; its later result
is PeerStopped. Name resolution is the only expected rejection, and the
request has no prerequisite.
impl<A> ActionItem for ObservePeer<A>
Acceptance establishes the relationship and leaves unit; its later result
is PeerStopped. Name resolution is the only expected rejection, and the
request has no prerequisite.
type Custody = (Option<ObservePeer<A>>, Option<<ObservePeer<A> as ActionItem>::Reply>)
type Input<'a> = &'a mut Option<ObservePeer<A>> where Self: 'a
type Reply = ItemSettlement<ObservePeer<A>, <ObservePeer<A> as ActionItem>::Accepted, <ObservePeer<A> as ActionItem>::Rejection, <ObservePeer<A> as ActionItem>::Prerequisite>
type Accepted = ()
type Rejection = PeerObservationRejection
type Prerequisite = Never
fn prepare_interpretation( progress: &mut Option<InterpretationProgress<Self, Self::Custody, Self::Reply>>, )
fn interpretation_input<'a>(
custody: &'a mut Self::Custody,
) -> Option<(Self::Input<'a>, &'a mut Option<Self::Reply>)>where
Self: 'a,
fn finish_interpretation( progress: &mut Option<InterpretationProgress<Self, Self::Custody, Self::Reply>>, )
Source§impl<A: Clone + Address> Clone for ObservePeer<A>
impl<A: Clone + Address> Clone for ObservePeer<A>
Source§fn clone(&self) -> ObservePeer<A>
fn clone(&self) -> ObservePeer<A>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more