pub struct SpawnRequest {
pub remote_task_id: RemoteTaskId,
pub computation: ComputationName,
pub input: RemoteInput,
pub lease: Duration,
pub idempotency_key: IdempotencyKey,
pub budget: Option<Budget>,
pub origin_node: NodeId,
pub origin_region: RegionId,
pub origin_task: TaskId,
}Expand description
Request to spawn a named computation on a remote node.
Contains all information needed to start a remote task:
- What to run (computation name + serialized inputs)
- Who is asking (origin node, region, task)
- How long to keep it alive (lease)
- Deduplication key (idempotency)
§Idempotency
The idempotency_key ensures exactly-once execution. If the remote node
receives a duplicate SpawnRequest (same key), it returns the existing
SpawnAck without re-executing.
Fields§
§remote_task_id: RemoteTaskIdUnique identifier for this remote task.
computation: ComputationNameName of the computation to execute.
input: RemoteInputSerialized input data.
lease: DurationRequested lease duration.
idempotency_key: IdempotencyKeyIdempotency key for deduplication.
budget: Option<Budget>Budget constraints for the remote task (optional).
origin_node: NodeIdNode that originated the request.
origin_region: RegionIdRegion that owns the remote task on the originator.
origin_task: TaskIdTask that spawned the remote task on the originator.
Trait Implementations§
Source§impl Clone for SpawnRequest
impl Clone for SpawnRequest
Source§fn clone(&self) -> SpawnRequest
fn clone(&self) -> SpawnRequest
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 SpawnRequest
impl RefUnwindSafe for SpawnRequest
impl Send for SpawnRequest
impl Sync for SpawnRequest
impl Unpin for SpawnRequest
impl UnsafeUnpin for SpawnRequest
impl UnwindSafe for SpawnRequest
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).