pub enum UploadEvent {
Encrypting {
chunks_done: usize,
},
Encrypted {
total_chunks: usize,
},
QuotingChunks {
wave: usize,
total_waves: usize,
chunks_in_wave: usize,
},
ChunkQuoted {
quoted: usize,
total: usize,
},
ChunkStored {
stored: usize,
total: usize,
},
WaveComplete {
wave: usize,
total_waves: usize,
stored_so_far: usize,
total: usize,
},
}Expand description
Progress events emitted during file upload for UI feedback.
Variants§
Encrypting
A chunk has been encrypted and spilled to disk.
Encrypted
File encryption complete.
QuotingChunks
Starting quote collection for a wave.
ChunkQuoted
A chunk has been quoted (peer discovery + price received). This is the slow phase — each quote involves network round-trips.
ChunkStored
A chunk has been stored on the network.
WaveComplete
A wave has completed.
Trait Implementations§
Source§impl Clone for UploadEvent
impl Clone for UploadEvent
Source§fn clone(&self) -> UploadEvent
fn clone(&self) -> UploadEvent
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 UploadEvent
impl RefUnwindSafe for UploadEvent
impl Send for UploadEvent
impl Sync for UploadEvent
impl Unpin for UploadEvent
impl UnsafeUnpin for UploadEvent
impl UnwindSafe for UploadEvent
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