pub enum Dest {
Shell,
Local,
Actor(ActrId),
}Expand description
Destination identifier
Three-way destination for message routing.
§Semantics
-
Dest::Shell: Workload → App (inproc 反向通道)- Used by Workload to call App side
- Routed through
InprocOutGate(zero serialization) - Example: Workload pushing notifications to App
-
Dest::Local: Target local Workload- From App: routed through
InprocOutGate(zero serialization) - From Workload: routed through
OutprocOutGate(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
OutprocOutGate(WebRTC/WebSocket) - Example: ClientWorkload calling RemoteServer
Variants§
Shell
Local Shell - Workload 调用 App 侧 (inproc 反向通道)
Local
Local Workload - 调用本地 Workload (从 App: inproc, 从 Workload: outproc 短接)
Actor(ActrId)
Remote Actor - 跨进程通信 (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 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§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: 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