pub struct WsRemoteExecutor { /* private fields */ }Expand description
A remote executor that dispatches work to workers via WebSocket.
Workers are registered by address + optional token.
When execute_remote is called, it finds a matching worker,
connects via WS, sends the plan, and waits for the result.
Implementations§
Trait Implementations§
Source§impl Default for WsRemoteExecutor
impl Default for WsRemoteExecutor
Source§impl RemoteExecutor for WsRemoteExecutor
impl RemoteExecutor for WsRemoteExecutor
Source§fn execute_remote(
&self,
node_id: &str,
target: &RemoteTarget,
input: Option<&Value>,
) -> Result<Value>
fn execute_remote( &self, node_id: &str, target: &RemoteTarget, input: Option<&Value>, ) -> Result<Value>
Execute a sub-plan remotely and return the output value.
Auto Trait Implementations§
impl !Freeze for WsRemoteExecutor
impl RefUnwindSafe for WsRemoteExecutor
impl Send for WsRemoteExecutor
impl Sync for WsRemoteExecutor
impl Unpin for WsRemoteExecutor
impl UnsafeUnpin for WsRemoteExecutor
impl UnwindSafe for WsRemoteExecutor
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more