pub enum HyphaEvent {
Progress {
current: u32,
total: u32,
message: String,
},
DownloadProgress {
downloaded_bytes: u64,
total_bytes: Option<u64>,
},
Log {
message: String,
},
Warn {
message: String,
},
}Expand description
A structured event emitted by hypha library functions.
Callers decide how to handle these — print them (CLI), forward to a channel (GUI/agent), or ignore them entirely (NoopSink).
Variants§
Progress
A multi-step operation made progress.
DownloadProgress
Byte-level download progress for speed/ETA display.
Log
A non-fatal informational message.
Warn
A non-fatal warning.
Trait Implementations§
Source§impl Clone for HyphaEvent
impl Clone for HyphaEvent
Source§fn clone(&self) -> HyphaEvent
fn clone(&self) -> HyphaEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HyphaEvent
impl RefUnwindSafe for HyphaEvent
impl Send for HyphaEvent
impl Sync for HyphaEvent
impl Unpin for HyphaEvent
impl UnsafeUnpin for HyphaEvent
impl UnwindSafe for HyphaEvent
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