pub enum RedirectorError {
FileCreationError(Error),
ShortLinkNotFound,
InvalidUrlPath(UrlPathError),
}Expand description
Errors that can occur during redirect operations.
Variants§
FileCreationError(Error)
An I/O error occurred while creating or writing redirect files.
This includes errors like permission denied, disk full, or invalid file paths.
ShortLinkNotFound
The short link has not been generated (should not occur in normal usage).
This error is included for completeness but should not happen since
short links are automatically generated during Redirector::new().
InvalidUrlPath(UrlPathError)
The provided URL path is invalid.
This occurs when the path contains invalid characters like query parameters (?), semicolons (;), or other forbidden characters.
Trait Implementations§
Source§impl Debug for RedirectorError
impl Debug for RedirectorError
Source§impl Display for RedirectorError
impl Display for RedirectorError
Source§impl Error for RedirectorError
impl Error for RedirectorError
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 RedirectorError
impl !RefUnwindSafe for RedirectorError
impl Send for RedirectorError
impl Sync for RedirectorError
impl Unpin for RedirectorError
impl !UnwindSafe for RedirectorError
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