pub enum PipelineEvent {
FileDiscovered {
path: String,
size: u64,
},
FileProcessed {
path: String,
shard_id: u64,
},
ShardCreated {
cid: String,
size: u64,
file_count: usize,
},
ShardFetched {
cid: String,
source: FetchSource,
},
Progress {
stage: String,
current: u64,
total: u64,
},
Warning {
message: String,
},
Error {
message: String,
recoverable: bool,
},
}Expand description
Events emitted during pipeline operations (seal/unseal).
Variants§
FileDiscovered
A file was discovered during workspace traversal.
FileProcessed
A file was processed (compressed, encrypted, or written).
ShardCreated
A shard was created and stored.
Fields
ShardFetched
A shard was fetched from storage.
Fields
§
source: FetchSourceSource from which the shard was fetched.
Progress
Progress update for long-running operations.
Fields
Warning
Non-fatal warning during operation.
Error
Error occurred (may or may not be recoverable).
Trait Implementations§
Source§impl Clone for PipelineEvent
impl Clone for PipelineEvent
Source§fn clone(&self) -> PipelineEvent
fn clone(&self) -> PipelineEvent
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 PipelineEvent
impl RefUnwindSafe for PipelineEvent
impl Send for PipelineEvent
impl Sync for PipelineEvent
impl Unpin for PipelineEvent
impl UnsafeUnpin for PipelineEvent
impl UnwindSafe for PipelineEvent
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> 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