pub struct RemoteOrigin(/* private fields */);Expand description
An origin this process read from the wire — a received key, a health
document, a catalog entity. Call/address builders take &impl ConcreteOrigin; this is the consumer-side implementation (identity
bridge, RFC 06 §6: display the payload name, key on the host id).
Implementations§
Source§impl RemoteOrigin
impl RemoteOrigin
Sourcepub fn parse(s: &str) -> Result<Self, KeyError>
pub fn parse(s: &str) -> Result<Self, KeyError>
Parse a concrete host origin received over the wire. Rejects
wildcards, service origins, and malformed values — a RemoteOrigin is
always one concrete host, which is what keeps a fan-out write
unspellable (G2).
Sourcepub fn from_host(id: HostId) -> Self
pub fn from_host(id: HostId) -> Self
Wrap an already-validated HostId (e.g. from
crate::StructuralKey::remote_origin).
Trait Implementations§
Source§impl Clone for RemoteOrigin
impl Clone for RemoteOrigin
Source§impl ConcreteOrigin for RemoteOrigin
impl ConcreteOrigin for RemoteOrigin
Source§impl Debug for RemoteOrigin
impl Debug for RemoteOrigin
Source§impl<'de> Deserialize<'de> for RemoteOrigin
Available on crate feature serde only.
impl<'de> Deserialize<'de> for RemoteOrigin
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RemoteOrigin
Source§impl Hash for RemoteOrigin
impl Hash for RemoteOrigin
impl HostOrigin for RemoteOrigin
Source§impl Ord for RemoteOrigin
impl Ord for RemoteOrigin
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 RemoteOrigin
impl PartialEq for RemoteOrigin
Source§impl PartialOrd for RemoteOrigin
impl PartialOrd for RemoteOrigin
Source§impl Serialize for RemoteOrigin
Available on crate feature serde only.
impl Serialize for RemoteOrigin
Available on crate feature
serde only.impl StructuralPartialEq for RemoteOrigin
Auto Trait Implementations§
impl Freeze for RemoteOrigin
impl RefUnwindSafe for RemoteOrigin
impl Send for RemoteOrigin
impl Sync for RemoteOrigin
impl Unpin for RemoteOrigin
impl UnsafeUnpin for RemoteOrigin
impl UnwindSafe for RemoteOrigin
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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
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§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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