pub enum NamespaceError {
MissingSeparator,
EmptyLogicalName,
SeparatorInLogicalName,
InvalidHash {
source: ContentHashParseError,
},
}Expand description
Errors produced when parsing a deployed module name.
Variants§
MissingSeparator
The deployed module name did not contain the mandated separator.
EmptyLogicalName
The logical module-name component was empty.
SeparatorInLogicalName
The logical module-name component contained the mandated separator.
InvalidHash
The hash component was not a valid content-hash textual form.
Fields
§
source: ContentHashParseErrorHash parser error from the hash component.
Trait Implementations§
Source§impl Clone for NamespaceError
impl Clone for NamespaceError
Source§fn clone(&self) -> NamespaceError
fn clone(&self) -> NamespaceError
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 NamespaceError
impl Debug for NamespaceError
Source§impl Display for NamespaceError
impl Display for NamespaceError
impl Eq for NamespaceError
Source§impl Error for NamespaceError
impl Error for NamespaceError
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 PartialEq for NamespaceError
impl PartialEq for NamespaceError
Source§fn eq(&self, other: &NamespaceError) -> bool
fn eq(&self, other: &NamespaceError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NamespaceError
Auto Trait Implementations§
impl Freeze for NamespaceError
impl RefUnwindSafe for NamespaceError
impl Send for NamespaceError
impl Sync for NamespaceError
impl Unpin for NamespaceError
impl UnsafeUnpin for NamespaceError
impl UnwindSafe for NamespaceError
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.