pub struct DispatchState {
pub task_id: String,
pub status: i8,
pub assignment: Assignment,
pub errors: Vec<String>,
}Fields§
§task_id: String§status: i8§assignment: Assignment§errors: Vec<String>Implementations§
Source§impl DispatchState
impl DispatchState
pub const STATUS_UNINITIALIZED: u8 = 0u8
pub const STATUS_QUEUED: u8 = 1u8
pub const STATUS_SELECTED: u8 = 2u8
pub const STATUS_DISPATCHED: u8 = 3u8
pub const STATUS_FAILED_TO_ASSIGN: u8 = 4u8
pub const STATUS_CANCELED_IN_FLIGHT: u8 = 5u8
Trait Implementations§
Source§impl Clone for DispatchState
impl Clone for DispatchState
Source§fn clone(&self) -> DispatchState
fn clone(&self) -> DispatchState
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 DispatchState
impl Debug for DispatchState
Source§impl Default for DispatchState
impl Default for DispatchState
Source§impl<'de> Deserialize<'de> for DispatchState
impl<'de> Deserialize<'de> for DispatchState
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
Source§impl PartialEq for DispatchState
impl PartialEq for DispatchState
Source§impl Serialize for DispatchState
impl Serialize for DispatchState
impl Message for DispatchState
impl StructuralPartialEq for DispatchState
Auto Trait Implementations§
impl Freeze for DispatchState
impl RefUnwindSafe for DispatchState
impl Send for DispatchState
impl Sync for DispatchState
impl Unpin for DispatchState
impl UnwindSafe for DispatchState
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