Skip to main content

Slot

Trait Slot 

Source
pub trait Slot {
    // Required method
    fn schedule_wft(
        self: Box<Self>,
        task: PollWorkflowTaskQueueResponse,
    ) -> Result<(), Error>;
}
Expand description

This trait represents a slot reserved for processing a WFT by a worker.

Required Methods§

Source

fn schedule_wft( self: Box<Self>, task: PollWorkflowTaskQueueResponse, ) -> Result<(), Error>

Consumes this slot by dispatching a WFT to its worker. This can only be called once.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§