pub struct UpdatePathsError {
pub source: Error,
pub origin: Option<PathOp>,
pub remaining: Vec<PathOp>,
}Expand description
The error provided by crate::Watcher::update_paths method.
Operations are applied in order. If an error occurs, processing stops and the error carries the failed operation (if known) and any remaining operations that were not attempted.
Fields§
§source: ErrorThe original error
origin: Option<PathOp>The operation that caused the error.
If set, all operations before it were applied successfully.
None if the error was not caused by a specific operation
(e.g. failure to start the watcher after successfully updating paths).
remaining: Vec<PathOp>The remaining operations that haven’t been applied.
This list does not include origin. To retry in order, handle origin
first (if present), then remaining.
Trait Implementations§
Source§impl Debug for UpdatePathsError
impl Debug for UpdatePathsError
Source§impl Display for UpdatePathsError
impl Display for UpdatePathsError
Source§impl Error for UpdatePathsError
impl Error for UpdatePathsError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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<UpdatePathsError> for Error
impl From<UpdatePathsError> for Error
Source§fn from(value: UpdatePathsError) -> Self
fn from(value: UpdatePathsError) -> Self
Converts to this type from the input type.
Source§impl IntoIterator for UpdatePathsError
impl IntoIterator for UpdatePathsError
Auto Trait Implementations§
impl !RefUnwindSafe for UpdatePathsError
impl !UnwindSafe for UpdatePathsError
impl Freeze for UpdatePathsError
impl Send for UpdatePathsError
impl Sync for UpdatePathsError
impl Unpin for UpdatePathsError
impl UnsafeUnpin for UpdatePathsError
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