pub struct ArtifactChunk {
pub append: bool,
pub last: bool,
}Expand description
Where an artifact update event sits in its artifact.
Whether its parts are appended to what the client already holds under the
same artifact id, and whether it is the artifact’s last chunk (spec
TaskArtifactUpdateEvent append and lastChunk).
Built with one of four named constructors, one per combination:
| Constructor | append | lastChunk | Use |
|---|---|---|---|
whole | absent | true | the complete artifact in one event |
first | absent | false | the first chunk of a streamed artifact |
append | true | false | a chunk after the first, more to come |
last | true | true | the final chunk |
On the wire append is sent only when it is true (absent means “replace”,
which is what false means too) and lastChunk is always sent, so a
chunked artifact sends exactly what
EventEmitter::artifact sends for (None, Some(false)),
(Some(true), Some(false)) and (Some(true), Some(true)).
Fields§
§append: boolThe parts are added to the artifact the client already has under the same id, rather than replacing it.
last: boolNo chunk of this artifact follows.
Implementations§
Source§impl ArtifactChunk
impl ArtifactChunk
Sourcepub const fn whole() -> ArtifactChunk
pub const fn whole() -> ArtifactChunk
The complete artifact in one event: it replaces any earlier artifact with the same id and is its last chunk.
Sourcepub const fn first() -> ArtifactChunk
pub const fn first() -> ArtifactChunk
The first chunk of an artifact streamed in several: it replaces any earlier artifact with the same id, and more chunks follow.
Sourcepub const fn append() -> ArtifactChunk
pub const fn append() -> ArtifactChunk
A chunk after the first, appended to the artifact; more follow.
Sourcepub const fn last() -> ArtifactChunk
pub const fn last() -> ArtifactChunk
The final chunk, appended to the artifact.
Trait Implementations§
Source§impl Clone for ArtifactChunk
impl Clone for ArtifactChunk
Source§fn clone(&self) -> ArtifactChunk
fn clone(&self) -> ArtifactChunk
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ArtifactChunk
Source§impl Debug for ArtifactChunk
impl Debug for ArtifactChunk
impl Eq for ArtifactChunk
Source§impl PartialEq for ArtifactChunk
impl PartialEq for ArtifactChunk
impl StructuralPartialEq for ArtifactChunk
Auto Trait Implementations§
impl Forget for ArtifactChunk
impl Freeze for ArtifactChunk
impl Move for ArtifactChunk
impl RefUnwindSafe for ArtifactChunk
impl Send for ArtifactChunk
impl Sync for ArtifactChunk
impl Unpin for ArtifactChunk
impl UnsafeUnpin for ArtifactChunk
impl UnwindSafe for ArtifactChunk
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
§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
key and return true if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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> ⓘ
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> ⓘ
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].