pub enum Dest {
Shell,
Local,
Actor(ActrId),
}Expand description
Destination identifier
Three-way destination for message routing.
§Semantics
-
Dest::Shell: Workload -> App (inproc reverse channel)- Used by Workload to call App side
- Routed through
HostGate(zero serialization) - Example: Workload pushing notifications to App
-
Dest::Local: Target local Workload- From App: routed through
HostGate(zero serialization) - From Workload: routed through
PeerGate(full serialization, short-circuit at transport) - Example: App calling its local Workload, or Workload calling itself
- From App: routed through
-
Dest::Actor(ActrId): Remote Actor (full outproc)- Used for cross-process Actor communication
- Routed through
PeerGate(WebRTC/WebSocket) - Example: ClientWorkload calling RemoteServer
Variants§
Shell
Local Shell - Workload calls App side (inproc reverse channel)
Local
Local Workload - calls local Workload (from App: inproc, from Workload: outproc short-circuit)
Actor(ActrId)
Remote Actor - cross-process communication (WebRTC/WebSocket)
Implementations§
Trait Implementations§
impl Eq for Dest
impl StructuralPartialEq for Dest
Auto Trait Implementations§
impl Freeze for Dest
impl RefUnwindSafe for Dest
impl Send for Dest
impl Sync for Dest
impl Unpin for Dest
impl UnsafeUnpin for Dest
impl UnwindSafe for Dest
Blanket Implementations§
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
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§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<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