pub enum TransferEvent {
TransferStarted {
id: u64,
path: PathBuf,
blocks: u64,
size: Option<u64>,
},
BlockStarted {
id: u64,
block: u64,
size: Option<u64>,
},
BlockProgress {
id: u64,
block: u64,
transferred: u64,
},
BlockCompleted {
id: u64,
block: u64,
failed: bool,
},
TransferCompleted {
id: u64,
failed: bool,
},
}Expand description
Represents an event that may occur during a file transfer.
Variants§
TransferStarted
A transfer of a file has been started.
Fields
BlockStarted
A transfer of a block has started.
Fields
BlockProgress
A transfer of a block has made progress.
Fields
BlockCompleted
A transfer of a block has completed.
Fields
TransferCompleted
A file transfer has completed.
Trait Implementations§
Source§impl Clone for TransferEvent
impl Clone for TransferEvent
Source§fn clone(&self) -> TransferEvent
fn clone(&self) -> TransferEvent
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 TransferEvent
impl RefUnwindSafe for TransferEvent
impl Send for TransferEvent
impl Sync for TransferEvent
impl Unpin for TransferEvent
impl UnwindSafe for TransferEvent
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