pub enum NativeEvent {
FileStart {
path: String,
size: u64,
},
Progress {
done: u64,
total: u64,
},
FileDone {
path: String,
bytes: u64,
},
Tuning(TuneEvent),
Log(String),
}Expand description
A progress/lifecycle notification (mirrors the SDK’s onEvent stream).
Variants§
FileStart
A file transfer started.
Progress
Cumulative progress for the current transfer (all files).
FileDone
A file finished.
Tuning(TuneEvent)
The adaptive tuning engine changed state (only with auto_tune).
Log(String)
A human-readable diagnostic (retries, resume decisions, …).
Trait Implementations§
Source§impl Clone for NativeEvent
impl Clone for NativeEvent
Auto Trait Implementations§
impl Freeze for NativeEvent
impl RefUnwindSafe for NativeEvent
impl Send for NativeEvent
impl Sync for NativeEvent
impl Unpin for NativeEvent
impl UnsafeUnpin for NativeEvent
impl UnwindSafe for NativeEvent
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