pub struct Assignment {
pub active_tasks: Vec<TaskIds>,
pub standby_tasks: Vec<TaskIds>,
pub warmup_tasks: Vec<TaskIds>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§active_tasks: Vec<TaskIds>Active tasks for this client.
standby_tasks: Vec<TaskIds>Standby tasks for this client.
warmup_tasks: Vec<TaskIds>Warm-up tasks for this client.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl Assignment
impl Assignment
pub fn with_active_tasks(self, value: Vec<TaskIds>) -> Self
pub fn with_standby_tasks(self, value: Vec<TaskIds>) -> Self
pub fn with_warmup_tasks(self, value: Vec<TaskIds>) -> Self
pub fn read(buf: &mut Bytes, version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, version: i16) -> Result<()>
pub fn encoded_len(&self, version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for Assignment
impl Clone for Assignment
Source§fn clone(&self) -> Assignment
fn clone(&self) -> Assignment
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 Assignment
impl Debug for Assignment
Source§impl Default for Assignment
impl Default for Assignment
Source§impl PartialEq for Assignment
impl PartialEq for Assignment
Source§fn eq(&self, other: &Assignment) -> bool
fn eq(&self, other: &Assignment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Assignment
Auto Trait Implementations§
impl Freeze for Assignment
impl RefUnwindSafe for Assignment
impl Send for Assignment
impl Sync for Assignment
impl Unpin for Assignment
impl UnsafeUnpin for Assignment
impl UnwindSafe for Assignment
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