pub enum FileTransferError {
Show 20 variants
SessionNotFound(TransferSessionId),
SessionAlreadyExists(TransferSessionId),
InvalidState {
expected: String,
actual: String,
},
FileNotFound(String),
FileAlreadyExists(String),
PermissionDenied(String),
DiskFull,
PathTraversal(String),
ChunkChecksumMismatch {
index: u32,
},
FileHashMismatch,
Timeout,
Cancelled,
MaxRetriesExceeded {
index: u32,
},
SyncConflict {
path: String,
},
Io(Error),
Transport(String),
Rejected(String),
Serialization(String),
Compression(String),
Internal(String),
}Expand description
Errors returned by file transfer operations.
Variants§
SessionNotFound(TransferSessionId)
SessionAlreadyExists(TransferSessionId)
InvalidState
FileNotFound(String)
FileAlreadyExists(String)
PermissionDenied(String)
DiskFull
PathTraversal(String)
ChunkChecksumMismatch
FileHashMismatch
Timeout
Cancelled
MaxRetriesExceeded
SyncConflict
Io(Error)
Transport(String)
Rejected(String)
Serialization(String)
Compression(String)
Internal(String)
Implementations§
Trait Implementations§
Source§impl Debug for FileTransferError
impl Debug for FileTransferError
Source§impl Display for FileTransferError
impl Display for FileTransferError
Source§impl Error for FileTransferError
impl Error for FileTransferError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for FileTransferError
impl From<Error> for FileTransferError
Source§fn from(source: Error) -> FileTransferError
fn from(source: Error) -> FileTransferError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FileTransferError
impl !RefUnwindSafe for FileTransferError
impl Send for FileTransferError
impl Sync for FileTransferError
impl Unpin for FileTransferError
impl !UnwindSafe for FileTransferError
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