pub struct RoutingFunctionDispatchRouter { /* private fields */ }Expand description
Router adapter backed by the active liminal routing function slot.
Implementations§
Source§impl RoutingFunctionDispatchRouter
impl RoutingFunctionDispatchRouter
Sourcepub const fn new(slot: Arc<RoutingSlot>, executor: SupervisedExecutor) -> Self
pub const fn new(slot: Arc<RoutingSlot>, executor: SupervisedExecutor) -> Self
Creates a router using the supplied routing slot and supervised executor.
Trait Implementations§
Source§impl DispatchRouter for RoutingFunctionDispatchRouter
impl DispatchRouter for RoutingFunctionDispatchRouter
Source§fn select_worker(
&self,
workflow_id: &str,
channel_name: &ChannelName,
request: &ActivityRequest,
candidates: &[DispatchWorker],
excluded_worker_ids: &[String],
) -> Result<Option<DispatchWorker>, AionSurfaceError>
fn select_worker( &self, workflow_id: &str, channel_name: &ChannelName, request: &ActivityRequest, candidates: &[DispatchWorker], excluded_worker_ids: &[String], ) -> Result<Option<DispatchWorker>, AionSurfaceError>
Selects one worker from the supplied snapshot. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for RoutingFunctionDispatchRouter
impl !UnwindSafe for RoutingFunctionDispatchRouter
impl Freeze for RoutingFunctionDispatchRouter
impl Send for RoutingFunctionDispatchRouter
impl Sync for RoutingFunctionDispatchRouter
impl Unpin for RoutingFunctionDispatchRouter
impl UnsafeUnpin for RoutingFunctionDispatchRouter
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