pub enum ArtifactDelta {
AppendedParts {
index: usize,
count: usize,
},
Pushed {
index: usize,
},
}Expand description
What changed in a task’s artifacts, for TaskStore::save_artifact_delta.
Indexes refer to positions in the task’s artifacts vector as it stands
after the change, so a store can locate the affected artifact without
searching.
Variants§
AppendedParts
count parts were appended to the end of the artifact at index.
Every part before the last count is untouched, so a store holding the
previous version only needs to copy the tail.
Pushed
A new artifact was pushed at index, which is the last position.
Every artifact before it is untouched.
Trait Implementations§
Source§impl Clone for ArtifactDelta
impl Clone for ArtifactDelta
Source§fn clone(&self) -> ArtifactDelta
fn clone(&self) -> ArtifactDelta
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 moreimpl Copy for ArtifactDelta
Source§impl Debug for ArtifactDelta
impl Debug for ArtifactDelta
impl Eq for ArtifactDelta
Source§impl PartialEq for ArtifactDelta
impl PartialEq for ArtifactDelta
impl StructuralPartialEq for ArtifactDelta
Auto Trait Implementations§
impl Freeze for ArtifactDelta
impl RefUnwindSafe for ArtifactDelta
impl Send for ArtifactDelta
impl Sync for ArtifactDelta
impl Unpin for ArtifactDelta
impl UnsafeUnpin for ArtifactDelta
impl UnwindSafe for ArtifactDelta
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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