#[non_exhaustive]pub enum InputError {
ConflictPath,
DuplicatePath,
EmptyName,
EmptyTransfer,
InvalidFileName {
name: String,
reason: FileNameErrorReason,
},
}Expand description
An invalid file definition or transfer request supplied by the caller.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ConflictPath
A file path conflicts with another path treated as a parent directory.
DuplicatePath
Two files in the same transfer have duplicate destination paths.
EmptyName
A virtual file was constructed with an empty name.
EmptyTransfer
A transfer request contains no virtual files.
InvalidFileName
A file name or relative path violates validation rules.
Fields
§
reason: FileNameErrorReasonThe validation rule that was violated.
Trait Implementations§
Source§impl Clone for InputError
impl Clone for InputError
Source§impl Debug for InputError
impl Debug for InputError
Source§impl Display for InputError
impl Display for InputError
impl Eq for InputError
Source§impl PartialEq for InputError
impl PartialEq for InputError
impl StructuralPartialEq for InputError
Auto Trait Implementations§
impl Freeze for InputError
impl RefUnwindSafe for InputError
impl Send for InputError
impl Sync for InputError
impl Unpin for InputError
impl UnsafeUnpin for InputError
impl UnwindSafe for InputError
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