pub enum DeliveryError {
FileNotFound(String),
NotRegularFile(String),
Blocked(String),
OutsideAllowedDirs(String),
RecoveryFailed {
path: PathBuf,
error: String,
},
}Expand description
Error variants carry the originally-requested path (or recovery context) so callers can construct user-facing messages that include the relevant detail.
Variants§
FileNotFound(String)
NotRegularFile(String)
Blocked(String)
OutsideAllowedDirs(String)
RecoveryFailed
Recovery copy into the inbox failed. Carries the canonical source path
(so the caller can render a correct cp example) and the error message.
Trait Implementations§
Auto Trait Implementations§
impl Forget for DeliveryError
impl Freeze for DeliveryError
impl Move for DeliveryError
impl RefUnwindSafe for DeliveryError
impl Send for DeliveryErrorwhere
RawVecInner: Send,
impl Sync for DeliveryErrorwhere
RawVecInner: Sync,
impl Unpin for DeliveryError
impl UnsafeUnpin for DeliveryError
impl UnwindSafe for DeliveryErrorwhere
RawVecInner: UnwindSafe,
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