pub enum WorkspaceError {
InvalidPath(LocalPathError),
PersistentRequiresRepositoryScope,
PersistentWithoutRoot,
EphemeralWithRoot {
root: String,
},
PersistentWithoutSlot,
EphemeralWithSlot {
slot: u16,
},
SlotNotPositive,
}Expand description
Why a workspace configuration or allocation cannot exist.
Every variant is a load-time refusal, because 04-security-recovery.md
requires “load-time shape validation and immutable attempt workspace kind;
unknown values fail closed”. The shape refusals below are already raised by
WorkspacePolicy::from_persisted and AttemptWorkspace::from_persisted;
Self::InvalidPath is the #[from] conversion for the same load path and
starts being raised when the stored root column is parsed into a
LocalAbsolutePath, which is a2’s store work rather than this crate’s.
Variants§
InvalidPath(LocalPathError)
PersistentRequiresRepositoryScope
PersistentWithoutRoot
EphemeralWithRoot
PersistentWithoutSlot
EphemeralWithSlot
SlotNotPositive
Trait Implementations§
Source§impl Clone for WorkspaceError
impl Clone for WorkspaceError
Source§fn clone(&self) -> WorkspaceError
fn clone(&self) -> WorkspaceError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
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<LocalPathError> for WorkspaceError
impl From<LocalPathError> for WorkspaceError
Source§fn from(source: LocalPathError) -> Self
fn from(source: LocalPathError) -> Self
Converts to this type from the input type.
Source§impl From<WorkspaceError> for AttemptError
impl From<WorkspaceError> for AttemptError
Source§fn from(source: WorkspaceError) -> Self
fn from(source: WorkspaceError) -> Self
Converts to this type from the input type.
Source§impl From<WorkspaceError> for PolicyError
impl From<WorkspaceError> for PolicyError
Source§fn from(source: WorkspaceError) -> Self
fn from(source: WorkspaceError) -> Self
Converts to this type from the input type.
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