pub struct DispatchContext {
pub tenant_id: Option<String>,
pub priority: Option<u32>,
pub plugin_requirements: Option<Vec<String>>,
pub worker_capabilities: Option<Vec<String>>,
}Expand description
Context for context-aware dispatch (tenant, priority, plugin/worker capabilities). Used to route or filter work; concrete routing logic can be extended later.
Fields§
§tenant_id: Option<String>§priority: Option<u32>§plugin_requirements: Option<Vec<String>>Plugin type names required for this dispatch (e.g. node kinds).
worker_capabilities: Option<Vec<String>>Worker capability tags the scheduler may match against.
Implementations§
Source§impl DispatchContext
impl DispatchContext
pub fn new() -> Self
pub fn with_tenant(self, tenant_id: impl Into<String>) -> Self
pub fn with_priority(self, priority: u32) -> Self
Trait Implementations§
Source§impl Clone for DispatchContext
impl Clone for DispatchContext
Source§fn clone(&self) -> DispatchContext
fn clone(&self) -> DispatchContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DispatchContext
impl Debug for DispatchContext
Source§impl Default for DispatchContext
impl Default for DispatchContext
Source§fn default() -> DispatchContext
fn default() -> DispatchContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DispatchContext
impl RefUnwindSafe for DispatchContext
impl Send for DispatchContext
impl Sync for DispatchContext
impl Unpin for DispatchContext
impl UnsafeUnpin for DispatchContext
impl UnwindSafe for DispatchContext
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