pub struct PullProgress {
pub started: Option<Started>,
pub progress: Option<Progress>,
pub skipped: Option<Skipped>,
pub done: Option<Done>,
pub message: Option<String>,
pub completed: Option<Completed>,
}Expand description
A single progress frame emitted by the streaming Pull method.
varlink has no tagged/data-union type, so a sum-of-events is modelled as a
struct with one optional field per event shape: exactly one field is set
per frame, and its presence acts as the discriminant. (zlink does support
nested struct fields, hence the dedicated Started/Progress/etc.
payload types rather than a flat bag of always-empty columns.)
The stream yields zero or more intermediate frames (with continues=true)
describing fetch progress, followed by exactly one terminal frame whose
completed field is set (and continues=false)
carrying the pull result.
Fields§
§started: Option<Started>A new component started downloading.
progress: Option<Progress>Incremental transfer progress for a component.
skipped: Option<Skipped>A component was skipped because it was already present.
done: Option<Done>A component finished downloading.
message: Option<String>A human-readable status message.
completed: Option<Completed>The terminal frame carrying the pull result. Its presence marks the
end of the stream (the reply also has continues=false).
Implementations§
Source§impl PullProgress
impl PullProgress
Trait Implementations§
Source§impl Clone for PullProgress
impl Clone for PullProgress
Source§fn clone(&self) -> PullProgress
fn clone(&self) -> PullProgress
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PullProgress
impl Debug for PullProgress
Source§impl<'de> Deserialize<'de> for PullProgress
impl<'de> Deserialize<'de> for PullProgress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<ProgressEvent> for PullProgress
impl From<ProgressEvent> for PullProgress
Source§impl From<PullProgress> for __CfsctlServiceReplyStreamParams
impl From<PullProgress> for __CfsctlServiceReplyStreamParams
Source§fn from(v: PullProgress) -> Self
fn from(v: PullProgress) -> Self
Source§impl Serialize for PullProgress
impl Serialize for PullProgress
Auto Trait Implementations§
impl Freeze for PullProgress
impl RefUnwindSafe for PullProgress
impl Send for PullProgress
impl Sync for PullProgress
impl Unpin for PullProgress
impl UnsafeUnpin for PullProgress
impl UnwindSafe for PullProgress
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
§impl<S> CanonJsonSerialize for Swhere
S: Serialize,
impl<S> CanonJsonSerialize for Swhere
S: Serialize,
§fn to_canon_json_writer<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
fn to_canon_json_writer<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
§fn to_canon_json_vec(&self) -> Result<Vec<u8>, Error>
fn to_canon_json_vec(&self) -> Result<Vec<u8>, Error>
§fn to_canon_json_string(&self) -> Result<String, Error>
fn to_canon_json_string(&self) -> Result<String, Error>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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