pub enum BlobProgress {
Started {
total_bytes: u64,
},
Downloading {
downloaded_bytes: u64,
total_bytes: u64,
},
Completed {
local_path: PathBuf,
},
Failed {
error: String,
},
}Expand description
Progress updates during blob operations
Callbacks receive these updates during long-running blob transfers. Use for progress bars, logging, and timeout detection.
Variants§
Started
Transfer started, total size known
Downloading
Transfer in progress
Completed
Transfer complete, blob available locally
Failed
Transfer failed
Implementations§
Source§impl BlobProgress
impl BlobProgress
Sourcepub fn percentage(&self) -> Option<f64>
pub fn percentage(&self) -> Option<f64>
Get progress percentage (0.0 to 100.0)
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if transfer is complete
Trait Implementations§
Source§impl Clone for BlobProgress
impl Clone for BlobProgress
Source§fn clone(&self) -> BlobProgress
fn clone(&self) -> BlobProgress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BlobProgress
impl RefUnwindSafe for BlobProgress
impl Send for BlobProgress
impl Sync for BlobProgress
impl Unpin for BlobProgress
impl UnsafeUnpin for BlobProgress
impl UnwindSafe for BlobProgress
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<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 more