pub enum JoinResult<P: TokenPeer> {
Joined {
peer: P,
},
Rejected {
reason: String,
},
}Expand description
Result delivered to a joiner after it attempts to join.
Variants§
Joined
The join was accepted, and the peer ref is available.
Fields
§
peer: PThe peer on the other side of the rendezvous.
Rejected
The join was rejected by rendezvous policy.
Trait Implementations§
Source§impl<P: Clone + TokenPeer> Clone for JoinResult<P>
impl<P: Clone + TokenPeer> Clone for JoinResult<P>
Source§fn clone(&self) -> JoinResult<P>
fn clone(&self) -> JoinResult<P>
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<'de, P> Deserialize<'de> for JoinResult<P>where
P: TokenPeer,
impl<'de, P> Deserialize<'de> for JoinResult<P>where
P: TokenPeer,
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
impl<P: Eq + TokenPeer> Eq for JoinResult<P>
Source§impl<P: TokenPeer + Named> Named for JoinResult<P>
impl<P: TokenPeer + Named> Named for JoinResult<P>
Source§fn typename() -> &'static str
fn typename() -> &'static str
The globally unique type name for the type.
This should typically be the fully qualified Rust name of the type.
Source§fn typehash() -> u64
fn typehash() -> u64
A globally unique hash for this type.
TODO: actually enforce perfect hashing
Source§fn arm(&self) -> Option<&'static str>
fn arm(&self) -> Option<&'static str>
If the named type is an enum, this returns the name of the arm
of the value self.
Source§impl<P: PartialEq + TokenPeer> PartialEq for JoinResult<P>
impl<P: PartialEq + TokenPeer> PartialEq for JoinResult<P>
Source§fn eq(&self, other: &JoinResult<P>) -> bool
fn eq(&self, other: &JoinResult<P>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<P> Serialize for JoinResult<P>where
P: TokenPeer,
impl<P> Serialize for JoinResult<P>where
P: TokenPeer,
impl<P: PartialEq + TokenPeer> StructuralPartialEq for JoinResult<P>
Auto Trait Implementations§
impl<P> Freeze for JoinResult<P>where
P: Freeze,
impl<P> RefUnwindSafe for JoinResult<P>where
P: RefUnwindSafe,
impl<P> Send for JoinResult<P>
impl<P> Sync for JoinResult<P>
impl<P> Unpin for JoinResult<P>where
P: Unpin,
impl<P> UnsafeUnpin for JoinResult<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for JoinResult<P>where
P: UnwindSafe,
Blanket Implementations§
impl<M> Accepts<M> for Mwhere
M: RemoteMessage,
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].