pub struct WorkspaceError(/* private fields */);Expand description
A local tree that couldn’t be packed, hashed or written to.
Its own type, carried as the Error::source of the ERR_INVALID_ARG it becomes, so an
adapter that reports local filesystem failures on a row of its own (the CLI’s ERR_SYNC)
can tell one from a failure the daemon reported without reading a message.
Implementations§
Trait Implementations§
Source§impl Clone for WorkspaceError
impl Clone for WorkspaceError
Source§impl Debug for WorkspaceError
impl Debug for WorkspaceError
Source§impl Display for WorkspaceError
impl Display for WorkspaceError
impl Eq for WorkspaceError
Source§impl Error for WorkspaceError
impl Error for WorkspaceError
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()
Source§impl From<WorkspaceError> for Error
impl From<WorkspaceError> for Error
Source§fn from(error: WorkspaceError) -> Self
fn from(error: WorkspaceError) -> Self
ERR_INVALID_ARG: the tree is the caller’s, and so is the fix (a smaller tree, a
readable path, a writable destination). Nothing the daemon said is involved.
Source§impl PartialEq for WorkspaceError
impl PartialEq for WorkspaceError
impl StructuralPartialEq for WorkspaceError
Auto Trait Implementations§
impl Freeze for WorkspaceError
impl RefUnwindSafe for WorkspaceError
impl Send for WorkspaceError
impl Sync for WorkspaceError
impl Unpin for WorkspaceError
impl UnsafeUnpin for WorkspaceError
impl UnwindSafe for WorkspaceError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.