pub enum TransferError {
IoError(String),
ConnectionClosed,
FileNotFound,
FileCorrupted,
ChunkError,
}Expand description
Represents various errors that can occur during file transfer operations.
Variants§
IoError(String)
An I/O error, storing the error message as a String.
ConnectionClosed
Error indicating that the connection has closed unexpectedly.
FileNotFound
Error when the specified file is not found.
FileCorrupted
Error indicating file corruption.
ChunkError
Error encountered when handling chunks.
Trait Implementations§
Source§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 From<Error> for TransferError
impl From<Error> for TransferError
Source§fn from(err: IoError) -> TransferError
fn from(err: IoError) -> TransferError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransferError
impl RefUnwindSafe for TransferError
impl Send for TransferError
impl Sync for TransferError
impl Unpin 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