pub struct WorkerPollRequest {
pub node_id: u64,
pub last_revision: u64,
pub max_wait_secs: u32,
}Expand description
Long-poll request for new assignments. Server waits up to ~30s for
a revision newer than last_revision, then returns the current
assignment set (which may be empty).
Fields§
§node_id: u64§last_revision: u64The highest revision the worker has applied. Server returns any events with revision > this (or empty after timeout).
max_wait_secs: u32Maximum seconds to wait before returning even with no new events. Defaults to 30; capped server-side at 60.
Trait Implementations§
Source§impl Clone for WorkerPollRequest
impl Clone for WorkerPollRequest
Source§fn clone(&self) -> WorkerPollRequest
fn clone(&self) -> WorkerPollRequest
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 WorkerPollRequest
impl Debug for WorkerPollRequest
Source§impl<'de> Deserialize<'de> for WorkerPollRequest
impl<'de> Deserialize<'de> for WorkerPollRequest
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 WorkerPollRequest
impl RefUnwindSafe for WorkerPollRequest
impl Send for WorkerPollRequest
impl Sync for WorkerPollRequest
impl Unpin for WorkerPollRequest
impl UnsafeUnpin for WorkerPollRequest
impl UnwindSafe for WorkerPollRequest
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