Enum specifications::working::TaskStatus
source · #[repr(i32)]pub enum TaskStatus {
Show 19 variants
Unknown = 0,
Received = 1,
Authorized = 2,
Denied = 3,
AuthorizationFailed = 4,
Created = 5,
CreationFailed = 6,
Ready = 7,
Initialized = 8,
InitializationFailed = 9,
Started = 10,
StartingFailed = 11,
Heartbeat = 12,
Completed = 13,
CompletionFailed = 14,
Finished = 15,
Stopped = 16,
DecodingFailed = 17,
Failed = 18,
}
Expand description
Auxillary enum that defines the possible states a task can have.
Variants§
Unknown = 0
No status yet / unknown
Received = 1
The job has been received by the job node.
Authorized = 2
The job has been authorized by the job’s checker(s).
Denied = 3
The job has been denied by the job’s checker(s).
AuthorizationFailed = 4
Authorization has failed. If seen, the value
field is also populated with the error message.
Created = 5
The job container has been created.
CreationFailed = 6
We failed to create the job container. If seen, the value
field is also populated with the error message.
Ready = 7
The branelet has been booted (first event it sends).
Initialized = 8
The branelet node has been initialized; now only to spawn the job itself.
InitializationFailed = 9
We failed to initialize branelet. If seen, the value
field is also populated with the error message.
Started = 10
The actual subcall executeable / script has started
StartingFailed = 11
The subprocess executable did not want to start (calling it failed) If seen, the value
field is also populated with the error message.
Heartbeat = 12
Occassional message to let the user know the container is alive and running.
Completed = 13
The package call went successfully from the branelet’s side.
CompletionFailed = 14
The package call went wrong from the branelet’s side. If seen, the value
field is also populated with the error message.
Finished = 15
The container has exited with a zero status code and return a value. If seen, then the value
field is populated with the JSON-encoded FullValue returned.
Stopped = 16
The container was interrupted by the Job node
DecodingFailed = 17
brane-let could not decode the output from the package call. If seen, the value
field is also populated with the error message.
Failed = 18
The container has exited with a non-zero status code. If seen, the value
field is populated with a JSON-encoded triplet of the error code, the container’s stdout and the container’s stderr.
Implementations§
Trait Implementations§
source§impl Clone for TaskStatus
impl Clone for TaskStatus
source§fn clone(&self) -> TaskStatus
fn clone(&self) -> TaskStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TaskStatus
impl Debug for TaskStatus
source§impl Default for TaskStatus
impl Default for TaskStatus
source§fn default() -> TaskStatus
fn default() -> TaskStatus
source§impl From<TaskStatus> for i32
impl From<TaskStatus> for i32
source§fn from(value: TaskStatus) -> i32
fn from(value: TaskStatus) -> i32
source§impl Hash for TaskStatus
impl Hash for TaskStatus
source§impl Ord for TaskStatus
impl Ord for TaskStatus
source§fn cmp(&self, other: &TaskStatus) -> Ordering
fn cmp(&self, other: &TaskStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for TaskStatus
impl PartialEq for TaskStatus
source§impl PartialOrd for TaskStatus
impl PartialOrd for TaskStatus
source§impl TryFrom<i32> for TaskStatus
impl TryFrom<i32> for TaskStatus
source§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<TaskStatus, DecodeError>
fn try_from(value: i32) -> Result<TaskStatus, DecodeError>
impl Copy for TaskStatus
impl Eq for TaskStatus
impl StructuralPartialEq for TaskStatus
Auto Trait Implementations§
impl Freeze for TaskStatus
impl RefUnwindSafe for TaskStatus
impl Send for TaskStatus
impl Sync for TaskStatus
impl Unpin for TaskStatus
impl UnwindSafe for TaskStatus
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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>
T
in a tonic::Request