pub struct WorkerJobResult {
pub output: Option<Value>,
pub error: Option<String>,
pub stop_pod: Option<bool>,
}Available on crate feature
serverless only.Expand description
Result returned to RunPod for a processed worker job.
Fields§
§output: Option<Value>Successful job output.
error: Option<String>Failed job error message.
stop_pod: Option<bool>Ask RunPod to refresh the worker after returning this result.
Implementations§
Trait Implementations§
Source§impl Clone for WorkerJobResult
impl Clone for WorkerJobResult
Source§fn clone(&self) -> WorkerJobResult
fn clone(&self) -> WorkerJobResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkerJobResult
impl Debug for WorkerJobResult
Auto Trait Implementations§
impl Freeze for WorkerJobResult
impl RefUnwindSafe for WorkerJobResult
impl Send for WorkerJobResult
impl Sync for WorkerJobResult
impl Unpin for WorkerJobResult
impl UnsafeUnpin for WorkerJobResult
impl UnwindSafe for WorkerJobResult
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