pub struct WorkerServer { /* private fields */ }
Expand description
Defines a server for incoming worker requests.
Implementations§
Source§impl WorkerServer
impl WorkerServer
Sourcepub fn new(
node_config_path: impl Into<PathBuf>,
keep_containers: bool,
proxy: Arc<ProxyClient>,
) -> Result<Self, Error>
pub fn new( node_config_path: impl Into<PathBuf>, keep_containers: bool, proxy: Arc<ProxyClient>, ) -> Result<Self, Error>
Constructor for the JobHandler.
§Arguments
node_config_path
: The path to thenode.yml
file that describes this node’s environment.keep_containers
: If true, then we will not remove containers after execution (useful for debugging).proxy
: The proxy client to connect to the proxy service with.
§Returns
A new JobHandler instance.
§Errors
This function could error if it failed to load the node config file at node_config_path
.
Trait Implementations§
Source§impl Clone for WorkerServer
impl Clone for WorkerServer
Source§fn clone(&self) -> WorkerServer
fn clone(&self) -> WorkerServer
Returns a copy 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 WorkerServer
impl Debug for WorkerServer
Source§impl JobService for WorkerServer
impl JobService for WorkerServer
Source§type ExecuteStream = ReceiverStream<Result<ExecuteReply, Status>>
type ExecuteStream = ReceiverStream<Result<ExecuteReply, Status>>
The response type for stream returned by
JobService::execute()
.Source§fn check_workflow<'life0, 'async_trait>(
&'life0 self,
request: Request<CheckWorkflowRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CheckReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn check_workflow<'life0, 'async_trait>(
&'life0 self,
request: Request<CheckWorkflowRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CheckReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle for when a
CheckWorkflowRequest
comes in. Read moreSource§fn check_task<'life0, 'async_trait>(
&'life0 self,
request: Request<CheckTaskRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CheckReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn check_task<'life0, 'async_trait>(
&'life0 self,
request: Request<CheckTaskRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CheckReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle for when a
CheckTaskRequest
comes in. Read moreSource§fn preprocess<'life0, 'async_trait>(
&'life0 self,
request: Request<PreprocessRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PreprocessReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn preprocess<'life0, 'async_trait>(
&'life0 self,
request: Request<PreprocessRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PreprocessReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle for when a PreprocessRequest comes in. Read more
Auto Trait Implementations§
impl Freeze for WorkerServer
impl !RefUnwindSafe for WorkerServer
impl Send for WorkerServer
impl Sync for WorkerServer
impl Unpin for WorkerServer
impl !UnwindSafe for WorkerServer
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request