pub struct WorkerPollResponse {
pub revision: u64,
pub events: Vec<WorkerAssignmentEvent>,
}Expand description
Response to a long-poll: zero or more assignment events newer than
the worker’s last_revision.
Fields§
§revision: u64Current cluster revision (worker should record this).
events: Vec<WorkerAssignmentEvent>Assignment events ordered by revision ASC. Empty when nothing
new since last_revision (timeout).
Trait Implementations§
Source§impl Clone for WorkerPollResponse
impl Clone for WorkerPollResponse
Source§fn clone(&self) -> WorkerPollResponse
fn clone(&self) -> WorkerPollResponse
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 Debug for WorkerPollResponse
impl Debug for WorkerPollResponse
Source§impl<'de> Deserialize<'de> for WorkerPollResponse
impl<'de> Deserialize<'de> for WorkerPollResponse
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 WorkerPollResponse
impl RefUnwindSafe for WorkerPollResponse
impl Send for WorkerPollResponse
impl Sync for WorkerPollResponse
impl Unpin for WorkerPollResponse
impl UnsafeUnpin for WorkerPollResponse
impl UnwindSafe for WorkerPollResponse
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