pub struct WorkerRegistration<'a> {
pub id: &'a str,
pub incarnation: &'a str,
pub protocol_version: &'a str,
pub schedr_version: &'a str,
pub queues: &'a [String],
pub slots: u32,
pub watcher_slots: u32,
pub log_endpoint: &'a str,
}Expand description
What a worker reports when it registers.
Fields§
§id: &'a strIts ID.
incarnation: &'a strThe incarnation of its agent process.
protocol_version: &'a strIts protocol version (major.minor).
schedr_version: &'a strIts schedr version.
queues: &'a [String]The queues it serves (none: default).
slots: u32Its task slots.
watcher_slots: u32Its slots for wait steps.
log_endpoint: &'a strWhere its log endpoint listens (empty until it has one).
Trait Implementations§
Source§impl<'a> Clone for WorkerRegistration<'a>
impl<'a> Clone for WorkerRegistration<'a>
Source§fn clone(&self) -> WorkerRegistration<'a>
fn clone(&self) -> WorkerRegistration<'a>
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<'a> Debug for WorkerRegistration<'a>
impl<'a> Debug for WorkerRegistration<'a>
impl<'a> Eq for WorkerRegistration<'a>
Source§impl<'a> PartialEq for WorkerRegistration<'a>
impl<'a> PartialEq for WorkerRegistration<'a>
impl<'a> StructuralPartialEq for WorkerRegistration<'a>
Auto Trait Implementations§
impl<'a> Freeze for WorkerRegistration<'a>
impl<'a> RefUnwindSafe for WorkerRegistration<'a>
impl<'a> Send for WorkerRegistration<'a>
impl<'a> Sync for WorkerRegistration<'a>
impl<'a> Unpin for WorkerRegistration<'a>
impl<'a> UnsafeUnpin for WorkerRegistration<'a>
impl<'a> UnwindSafe for WorkerRegistration<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more