pub struct WorkItemState<W>where
W: WorkItem,{
pub status: WorkItemStatus,
pub attempts: u32,
pub work_item: W,
}Fields§
§status: WorkItemStatus§attempts: u32§work_item: WTrait Implementations§
Source§impl<W> Clone for WorkItemState<W>
impl<W> Clone for WorkItemState<W>
Source§fn clone(&self) -> WorkItemState<W>
fn clone(&self) -> WorkItemState<W>
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<W> Debug for WorkItemState<W>
impl<W> Debug for WorkItemState<W>
Source§impl<W> Default for WorkItemState<W>
impl<W> Default for WorkItemState<W>
Source§fn default() -> WorkItemState<W>
fn default() -> WorkItemState<W>
Returns the “default value” for a type. Read more
Source§impl<'de, W> Deserialize<'de> for WorkItemState<W>
impl<'de, W> Deserialize<'de> for WorkItemState<W>
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WorkItemState<W>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WorkItemState<W>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<W> Eq for WorkItemState<W>
Source§impl<W> PartialEq for WorkItemState<W>
impl<W> PartialEq for WorkItemState<W>
Source§fn eq(&self, other: &WorkItemState<W>) -> bool
fn eq(&self, other: &WorkItemState<W>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<W> Serialize for WorkItemState<W>
impl<W> Serialize for WorkItemState<W>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<W> StructuralPartialEq for WorkItemState<W>where
W: WorkItem,
Auto Trait Implementations§
impl<W> Freeze for WorkItemState<W>where
W: Freeze,
impl<W> RefUnwindSafe for WorkItemState<W>where
W: RefUnwindSafe,
impl<W> Send for WorkItemState<W>
impl<W> Sync for WorkItemState<W>
impl<W> Unpin for WorkItemState<W>where
W: Unpin,
impl<W> UnsafeUnpin for WorkItemState<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for WorkItemState<W>where
W: UnwindSafe,
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