pub enum MatchResponse {
SingleHop(SingleHopMatch),
MultiHopAssignment(MultiHopAssignment),
}Expand description
Coordinator’s response to a MatchRequest.
Two shapes — the direct single-hop case (MatchResponse::SingleHop)
and the multi-hop case (MatchResponse::MultiHopAssignment) — share
one variant family so the wire shape stays a single tagged sum.
Variants§
SingleHop(SingleHopMatch)
Direct single-hop assignment: peer routes straight to one of the cohort’s exit nodes.
MultiHopAssignment(MultiHopAssignment)
Multi-hop assignment: peer routes through a chain of forwarders before reaching the exit.
Trait Implementations§
Source§impl Clone for MatchResponse
impl Clone for MatchResponse
Source§fn clone(&self) -> MatchResponse
fn clone(&self) -> MatchResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MatchResponse
impl Debug for MatchResponse
Source§impl<'de> Deserialize<'de> for MatchResponse
impl<'de> Deserialize<'de> for MatchResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MatchResponse
impl PartialEq for MatchResponse
Source§fn eq(&self, other: &MatchResponse) -> bool
fn eq(&self, other: &MatchResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MatchResponse
impl Serialize for MatchResponse
impl Eq for MatchResponse
impl StructuralPartialEq for MatchResponse
Auto Trait Implementations§
impl Freeze for MatchResponse
impl RefUnwindSafe for MatchResponse
impl Send for MatchResponse
impl Sync for MatchResponse
impl Unpin for MatchResponse
impl UnsafeUnpin for MatchResponse
impl UnwindSafe for MatchResponse
Blanket Implementations§
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
Mutably borrows from an owned value. Read more