pub enum CallTarget {
Host(HostId),
Fleet,
Service(ServiceOrigin),
}Expand description
Who a call is addressed to. Typed — a fleet call is a deliberate variant,
never a string that happens to contain * (RFC 08 §1.1’s origin-argument
rule for dynamic callers).
Variants§
Host(HostId)
One host, by validated origin id.
Fleet
Every host serving the procedure — requires the RFC 05 §2.1 fan-in
discipline, which call applies.
Service(ServiceOrigin)
A registered service origin (@catalog, …) — no producer chunk.
Implementations§
Source§impl CallTarget
impl CallTarget
Sourcepub fn parse(s: &str) -> Result<CallTarget>
pub fn parse(s: &str) -> Result<CallTarget>
Parse a CLI-shaped target: * = fleet, @name = service, else a host
origin id (validated — a hostname here is the RFC 06 §6 bridge bug,
and it fails loudly instead of being string-glued into a key).
Trait Implementations§
Source§impl Clone for CallTarget
impl Clone for CallTarget
Source§fn clone(&self) -> CallTarget
fn clone(&self) -> CallTarget
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 CallTarget
impl Debug for CallTarget
impl Eq for CallTarget
Source§impl PartialEq for CallTarget
impl PartialEq for CallTarget
impl StructuralPartialEq for CallTarget
Auto Trait Implementations§
impl Freeze for CallTarget
impl RefUnwindSafe for CallTarget
impl Send for CallTarget
impl Sync for CallTarget
impl Unpin for CallTarget
impl UnsafeUnpin for CallTarget
impl UnwindSafe for CallTarget
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> 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§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