pub enum RemoteMessage {
SpawnRequest(SpawnRequest),
SpawnAck(SpawnAck),
CancelRequest(CancelRequest),
ResultDelivery(ResultDelivery),
LeaseRenewal(LeaseRenewal),
}Expand description
A message in the remote structured concurrency protocol.
All protocol messages are tagged with the enum variant for dispatch.
Each message carries the RemoteTaskId for correlation.
Variants§
SpawnRequest(SpawnRequest)
Request to spawn a named computation on a remote node.
SpawnAck(SpawnAck)
Acknowledgement of a spawn request (accepted or rejected).
CancelRequest(CancelRequest)
Request to cancel a running remote task.
ResultDelivery(ResultDelivery)
Delivery of a remote task’s terminal result.
LeaseRenewal(LeaseRenewal)
Lease renewal / heartbeat for an active remote task.
Implementations§
Source§impl RemoteMessage
impl RemoteMessage
Sourcepub fn remote_task_id(&self) -> RemoteTaskId
pub fn remote_task_id(&self) -> RemoteTaskId
Returns the remote task ID associated with this message.
Trait Implementations§
Source§impl Clone for RemoteMessage
impl Clone for RemoteMessage
Source§fn clone(&self) -> RemoteMessage
fn clone(&self) -> RemoteMessage
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 moreAuto Trait Implementations§
impl Freeze for RemoteMessage
impl RefUnwindSafe for RemoteMessage
impl Send for RemoteMessage
impl Sync for RemoteMessage
impl Unpin for RemoteMessage
impl UnsafeUnpin for RemoteMessage
impl UnwindSafe for RemoteMessage
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<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).