pub struct WorkUnitMsg {
pub id: Uuid,
pub partition: usize,
pub body: MaybeEncoded<Box<dyn WorkUnit>>,
pub created_timestamp_unix_nanos: usize,
pub sent_timestamp_unix_nanos: usize,
pub received_timestamp_unix_nanos: usize,
pub processed_timestamp_unix_nanos: usize,
}Fields§
§id: UuidIdentifier of the node to which this work unit feed belongs to.
partition: usizeThe partition index within the node to which the work unit feed belongs to.
body: MaybeEncoded<Box<dyn WorkUnit>>Arbitrary user-defined data (e.g., a file address) necessary during execution.
created_timestamp_unix_nanos: usizeUnix timestamp in nanoseconds at which this message was created in the coordinator.
sent_timestamp_unix_nanos: usizeUnix timestamp in nanoseconds at which this message was sent by the coordinator.
received_timestamp_unix_nanos: usizeUnix timestamp in nanoseconds at which this message was received by a worker.
processed_timestamp_unix_nanos: usizeUnix timestamp in nanoseconds at which this message started being processed.
Auto Trait Implementations§
impl !RefUnwindSafe for WorkUnitMsg
impl !UnwindSafe for WorkUnitMsg
impl Freeze for WorkUnitMsg
impl Send for WorkUnitMsg
impl Sync for WorkUnitMsg
impl Unpin for WorkUnitMsg
impl UnsafeUnpin for WorkUnitMsg
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request