pub struct WorkerState {
    pub type: String,
    pub source: String,
}Expand description
A serializable version of a worker’s state.
Fields§
§type: StringType of task being consumed by the worker, useful for display and filtering
source: StringThe type of job stream
Implementations§
Trait Implementations§
Source§impl Debug for WorkerState
 
impl Debug for WorkerState
Source§impl<'de> Deserialize<'de> for WorkerState
 
impl<'de> Deserialize<'de> for WorkerState
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 WorkerState
impl RefUnwindSafe for WorkerState
impl Send for WorkerState
impl Sync for WorkerState
impl Unpin for WorkerState
impl UnwindSafe for WorkerState
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