pub struct QueryForTopoInfoReport {
pub info: TopoInfo,
pub then: QueryFor,
pub request_id: Uuid,
}Expand description
Topology snapshot returned for QueryForTopoInfoSend.
The sender copies the request id from the query. The receiver spends that id before opening any advertised connection or mutating its local ring state.
Fields§
§info: TopoInfoReported successor and predecessor view.
then: QueryForHandler path copied from the query.
request_id: UuidOne-shot identity copied unchanged from the triggering query.
The receiver spends it at most once against the expected authenticated reporter. Replayed or replaced values, and values from a reporter that has left the successor list, are ignored before advertised peers can create transport work.
Trait Implementations§
Source§impl Clone for QueryForTopoInfoReport
impl Clone for QueryForTopoInfoReport
Source§fn clone(&self) -> QueryForTopoInfoReport
fn clone(&self) -> QueryForTopoInfoReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QueryForTopoInfoReport
impl Debug for QueryForTopoInfoReport
Source§impl<'de> Deserialize<'de> for QueryForTopoInfoReport
impl<'de> Deserialize<'de> for QueryForTopoInfoReport
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<QueryForTopoInfoReport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<QueryForTopoInfoReport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl HandleMsg<QueryForTopoInfoReport> for MessageHandler
Admit only bounded topology candidates from a correlated topology report.
impl HandleMsg<QueryForTopoInfoReport> for MessageHandler
Admit only bounded topology candidates from a correlated topology report.
Sync-successor reports connect advertised successors before joining them to the local DHT. Stabilization reports use the same request-id discipline, then commit the reported topology only after the reporter and at least one reported peer are still routable under the transport lifecycle boundary.
Source§fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
context: &'life1 HandlerContext<'life2>,
msg: &'life3 QueryForTopoInfoReport,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
MessageHandler: 'async_trait,
fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
context: &'life1 HandlerContext<'life2>,
msg: &'life3 QueryForTopoInfoReport,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
MessageHandler: 'async_trait,
Dispatch one report to the exact synchronization flow authorized by its token.
Successor-sync claims are single-use and revalidated before every
bounded candidate. Each connected candidate is joined before the cursor
advances. The claim is released when it drops, so a connection or join
failure releases the token by leaving the handler. A stale plan returns
without emitting additional effects. Stabilization reports are
delegated to handle_stabilization_report.
§Errors
Returns an error when DHT claim state cannot be accessed, or when an authorized candidate cannot be connected or joined. The matching token is cancelled before propagating an effect failure.
Source§impl Serialize for QueryForTopoInfoReport
impl Serialize for QueryForTopoInfoReport
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Forget for QueryForTopoInfoReport
impl Freeze for QueryForTopoInfoReport
impl Move for QueryForTopoInfoReport
impl RefUnwindSafe for QueryForTopoInfoReport
impl Send for QueryForTopoInfoReport
impl Sync for QueryForTopoInfoReport
impl Unpin for QueryForTopoInfoReport
impl UnsafeUnpin for QueryForTopoInfoReport
impl UnwindSafe for QueryForTopoInfoReport
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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>
impl<T> MaybeSend for T
impl<T> MaybeSendSync for T
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.