#[non_exhaustive]pub enum WorkspaceErrorKind {
Config,
InvalidRoot,
}Expand description
WorkspaceError’s failure class. Does not delegate to
ConfigErrorKind (RFC 041’s handoff § 4, decided explicitly):
WorkspaceError exists so the Workspace API signals intent at the
type level, and delegating its kind() would leak ConfigError’s
taxonomy through the type whose whole purpose is to have its own.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for WorkspaceErrorKind
impl Clone for WorkspaceErrorKind
Source§fn clone(&self) -> WorkspaceErrorKind
fn clone(&self) -> WorkspaceErrorKind
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 moreimpl Copy for WorkspaceErrorKind
Source§impl Debug for WorkspaceErrorKind
impl Debug for WorkspaceErrorKind
impl Eq for WorkspaceErrorKind
Source§impl PartialEq for WorkspaceErrorKind
impl PartialEq for WorkspaceErrorKind
impl StructuralPartialEq for WorkspaceErrorKind
Auto Trait Implementations§
impl Freeze for WorkspaceErrorKind
impl RefUnwindSafe for WorkspaceErrorKind
impl Send for WorkspaceErrorKind
impl Sync for WorkspaceErrorKind
impl Unpin for WorkspaceErrorKind
impl UnsafeUnpin for WorkspaceErrorKind
impl UnwindSafe for WorkspaceErrorKind
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.