pub enum EncodeError {
Run,
Catalog,
Unheld(ReadRefusal),
Count(usize),
Requires,
Uncatalogued {
iface: String,
contract: String,
},
Revision {
iface: String,
contract: String,
},
Resource {
iface: String,
resource: String,
},
Twice {
iface: String,
resource: String,
},
Items {
iface: String,
items: usize,
},
Bound {
iface: String,
bound: u64,
},
Zid(String),
}Expand description
Why a descriptor has no compact form (core §3.3, “Which descriptors have one”): its owner writes it as JSON.
Variants§
Run
It states no run, or misspells it (D002).
Catalog
It names no catalog, or misspells its id (D002).
Unheld(ReadRefusal)
No catalog held is the one it names, or succeeds it.
Count(usize)
It lists no interface, or more than MAX_ENTRIES.
Requires
It lists a requirement.
Uncatalogued
An entry’s revision is not among those the catalog lists.
Revision
No revision given is the entry’s.
Resource
An unavailable resource or a cardinality key that names no resource of the entry’s revision.
Twice
One entry’s unavailable list names a resource twice.
Items
A list of more than MAX_ITEMS.
Bound
A bound above 2^32 − 1.
Zid(String)
A meta.zid that is not 1 to 32 lowercase hex digits.
Trait Implementations§
Source§impl Clone for EncodeError
impl Clone for EncodeError
Source§impl Debug for EncodeError
impl Debug for EncodeError
Source§impl Display for EncodeError
impl Display for EncodeError
impl Eq for EncodeError
Source§impl Error for EncodeError
impl Error for EncodeError
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 PartialEq for EncodeError
impl PartialEq for EncodeError
impl StructuralPartialEq for EncodeError
Auto Trait Implementations§
impl Forget for EncodeError
impl Freeze for EncodeError
impl Move for EncodeError
impl RefUnwindSafe for EncodeError
impl Send for EncodeErrorwhere
RawVecInner: Send,
impl Sync for EncodeErrorwhere
RawVecInner: Sync,
impl Unpin for EncodeError
impl UnsafeUnpin for EncodeError
impl UnwindSafe for EncodeErrorwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more