pub struct RemoteProtocolVersion { /* private fields */ }Expand description
Stable version identifier for the remote-service wire protocol.
Admission currently requires an exact version match. A future compatible range can be introduced deliberately without silently accepting a peer that may interpret lifecycle messages differently.
Implementations§
Source§impl RemoteProtocolVersion
impl RemoteProtocolVersion
Sourcepub const V2: Self
pub const V2: Self
Listener protocol with authenticated-peer-scoped idempotency.
A V2 listener reserves a key before handler dispatch, retains terminal outcomes for bounded replay, and refuses ambiguous in-flight retries. The guarantee is process-local and does not survive service restart.
Trait Implementations§
Source§impl Clone for RemoteProtocolVersion
impl Clone for RemoteProtocolVersion
Source§fn clone(&self) -> RemoteProtocolVersion
fn clone(&self) -> RemoteProtocolVersion
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 moreimpl Copy for RemoteProtocolVersion
Source§impl Debug for RemoteProtocolVersion
impl Debug for RemoteProtocolVersion
Source§impl<'de> Deserialize<'de> for RemoteProtocolVersion
impl<'de> Deserialize<'de> for RemoteProtocolVersion
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 Display for RemoteProtocolVersion
impl Display for RemoteProtocolVersion
impl Eq for RemoteProtocolVersion
Source§impl Hash for RemoteProtocolVersion
impl Hash for RemoteProtocolVersion
Source§impl Ord for RemoteProtocolVersion
impl Ord for RemoteProtocolVersion
Source§fn cmp(&self, other: &RemoteProtocolVersion) -> Ordering
fn cmp(&self, other: &RemoteProtocolVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RemoteProtocolVersion
impl PartialEq for RemoteProtocolVersion
Source§impl PartialOrd for RemoteProtocolVersion
impl PartialOrd for RemoteProtocolVersion
Source§impl Serialize for RemoteProtocolVersion
impl Serialize for RemoteProtocolVersion
impl StructuralPartialEq for RemoteProtocolVersion
Auto Trait Implementations§
impl Freeze for RemoteProtocolVersion
impl RefUnwindSafe for RemoteProtocolVersion
impl Send for RemoteProtocolVersion
impl Sync for RemoteProtocolVersion
impl Unpin for RemoteProtocolVersion
impl UnsafeUnpin for RemoteProtocolVersion
impl UnwindSafe for RemoteProtocolVersion
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
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).