pub enum TransferError {
StateNotFound(String),
FileModified {
expected_checksum: String,
actual_checksum: String,
},
SourceNotFound(String),
DestinationInvalid(String),
StateCorrupted(String),
NetworkError(String),
QuotaExceeded {
required_bytes: u64,
available_bytes: u64,
},
ChunkVerificationFailed {
chunk_index: u32,
expected: String,
actual: String,
},
Cancelled,
IoError(String),
}Expand description
Error that may occur when resuming a transfer.
Variants§
StateNotFound(String)
Transfer state not found for the given ID.
FileModified
File was modified since transfer started.
Fields
SourceNotFound(String)
Source file no longer exists.
DestinationInvalid(String)
Destination path is no longer valid.
StateCorrupted(String)
Transfer state is corrupted.
NetworkError(String)
Network error during transfer.
QuotaExceeded
Storage quota exceeded.
ChunkVerificationFailed
Checksum verification failed for a chunk.
Fields
Cancelled
Transfer was cancelled.
IoError(String)
Generic I/O error.
Implementations§
Source§impl TransferError
impl TransferError
Trait Implementations§
Source§impl Clone for TransferError
impl Clone for TransferError
Source§fn clone(&self) -> TransferError
fn clone(&self) -> TransferError
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 TransferError
impl Debug for TransferError
Source§impl<'de> Deserialize<'de> for TransferError
impl<'de> Deserialize<'de> for TransferError
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 PartialEq for TransferError
impl PartialEq for TransferError
Source§impl Serialize for TransferError
impl Serialize for TransferError
impl Eq for TransferError
impl StructuralPartialEq for TransferError
Auto Trait Implementations§
impl Freeze for TransferError
impl RefUnwindSafe for TransferError
impl Send for TransferError
impl Sync for TransferError
impl Unpin for TransferError
impl UnsafeUnpin for TransferError
impl UnwindSafe for TransferError
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