pub enum FileServiceError {
InvalidRoot(PathBuf),
InvalidPath(String),
AlreadyExists(String),
NotFound(String),
NotADirectory(String),
NotAFile(String),
OutsideRoot(String),
Io(Error),
}Variants§
InvalidRoot(PathBuf)
InvalidPath(String)
AlreadyExists(String)
NotFound(String)
NotADirectory(String)
NotAFile(String)
OutsideRoot(String)
Io(Error)
Implementations§
Source§impl FileServiceError
impl FileServiceError
pub fn invalid_path(path: impl Into<String>) -> Self
Trait Implementations§
Source§impl Debug for FileServiceError
impl Debug for FileServiceError
Source§impl Display for FileServiceError
impl Display for FileServiceError
Source§impl Error for FileServiceError
impl Error for FileServiceError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for FileServiceError
impl !RefUnwindSafe for FileServiceError
impl Send for FileServiceError
impl Sync for FileServiceError
impl Unpin for FileServiceError
impl UnsafeUnpin for FileServiceError
impl !UnwindSafe for FileServiceError
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