pub enum ExecutorState {
Idle,
Busy {
task_id: String,
started_at: DateTime<Utc>,
},
Borrowed {
to_supervisor: String,
lease_id: String,
expires_at: DateTime<Utc>,
},
Stopped,
}Expand description
Current state of an executor.
Variants§
Trait Implementations§
Source§impl Clone for ExecutorState
impl Clone for ExecutorState
Source§fn clone(&self) -> ExecutorState
fn clone(&self) -> ExecutorState
Returns a duplicate 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 ExecutorState
impl Debug for ExecutorState
Source§impl<'de> Deserialize<'de> for ExecutorState
impl<'de> Deserialize<'de> for ExecutorState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExecutorState
impl RefUnwindSafe for ExecutorState
impl Send for ExecutorState
impl Sync for ExecutorState
impl Unpin for ExecutorState
impl UnsafeUnpin for ExecutorState
impl UnwindSafe for ExecutorState
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