pub enum DownloadEvent {
Start {
model: CompactString,
},
FileStart {
model: CompactString,
filename: String,
size: u64,
},
Progress {
model: CompactString,
bytes: u64,
},
FileEnd {
model: CompactString,
filename: String,
},
End {
model: CompactString,
},
}Expand description
Events emitted during a model download.
Variants§
Start
Download has started.
Fields
§
model: CompactStringModel being downloaded.
FileStart
A file download has started.
Fields
§
model: CompactStringModel being downloaded.
Progress
Download progress for current file (delta, not cumulative).
FileEnd
A file download has completed.
End
All downloads complete.
Fields
§
model: CompactStringModel that was downloaded.
Trait Implementations§
Source§impl Clone for DownloadEvent
impl Clone for DownloadEvent
Source§fn clone(&self) -> DownloadEvent
fn clone(&self) -> DownloadEvent
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 moreSource§impl Debug for DownloadEvent
impl Debug for DownloadEvent
Source§impl<'de> Deserialize<'de> for DownloadEvent
impl<'de> Deserialize<'de> for DownloadEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DownloadEvent> for ServerMessage
impl From<DownloadEvent> for ServerMessage
Source§fn from(e: DownloadEvent) -> Self
fn from(e: DownloadEvent) -> Self
Converts to this type from the input type.
Source§impl Serialize for DownloadEvent
impl Serialize for DownloadEvent
Source§impl TryFrom<ServerMessage> for DownloadEvent
impl TryFrom<ServerMessage> for DownloadEvent
Auto Trait Implementations§
impl Freeze for DownloadEvent
impl RefUnwindSafe for DownloadEvent
impl Send for DownloadEvent
impl Sync for DownloadEvent
impl Unpin for DownloadEvent
impl UnsafeUnpin for DownloadEvent
impl UnwindSafe for DownloadEvent
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