pub struct Workers { /* private fields */ }Expand description
The workers this process is keeping alive, one lane per environment.
A lane is locked for the length of an exchange, so calls into one worker queue up — which they must, since two messages down one pipe have no way to be told apart. Different environments do not wait on each other.
Implementations§
Source§impl Workers
impl Workers
Sourcepub async fn invoke(
&self,
ws: &CheckedWorkspace,
environment: &Environment,
implementation: &Implementation,
args: Vec<Value>,
params: &[Type],
expected: &Type,
) -> Result<Value, ExecError>
pub async fn invoke( &self, ws: &CheckedWorkspace, environment: &Environment, implementation: &Implementation, args: Vec<Value>, params: &[Type], expected: &Type, ) -> Result<Value, ExecError>
Runs an implementation on the worker for its environment, starting one if there is not already one running.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Workers
impl !RefUnwindSafe for Workers
impl !UnwindSafe for Workers
impl Forget for Workers
impl Move for Workers
impl Send for Workers
impl Sync for Workers
impl Unpin for Workers
impl UnsafeUnpin for Workerswhere
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const Waiter is !null: UnsafeUnpin,
Align8<usize>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(Ident, Arc<Mutex<Option<Worker>>>)>: UnsafeUnpin,
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