#[non_exhaustive]pub enum BundleError {
Format(String),
NotOwned(String),
Manifest(String),
Descriptor(String),
Receipt(String),
TxInFuture {
receipt: String,
tx: String,
now: String,
},
Bind(String),
Store(String),
Stopped(usize),
}Expand description
Why a bundle is refused. The first failing check is reported; nothing is written unless all pass.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Format(String)
Not JSON, a missing or extra member, bundle not 1, a malformed hex, or an order not kept.
NotOwned(String)
The namespace’s host is neither the mesh’s nor an owned one, or a name is not under the namespace.
Manifest(String)
The manifest: no key of the namespace’s host, the key’s window does not hold now, or the signature does not verify over the bundle’s names and receipt hashes.
Descriptor(String)
A descriptor that is not canonical, or a name whose descriptor is neither in the bundle nor stored.
Receipt(String)
A receipt: computed (with inputs), not verifying against the namespace’s key document, or not for one of the bundle’s names.
TxInFuture
A receipt whose tx is later than the mesh clock.
Bind(String)
A name whose latest binding is at or after the clock.
Store(String)
The store refused a read or a write (a cell with a later version, say).
Stopped(usize)
A test hook (import_signed_with’s stop_after): stopped after this many writes.
Trait Implementations§
Source§impl Clone for BundleError
impl Clone for BundleError
Source§impl Debug for BundleError
impl Debug for BundleError
Source§impl Display for BundleError
impl Display for BundleError
impl Eq for BundleError
Source§impl Error for BundleError
impl Error for BundleError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for BundleError
impl PartialEq for BundleError
impl StructuralPartialEq for BundleError
Auto Trait Implementations§
impl Forget for BundleError
impl Freeze for BundleError
impl Move for BundleError
impl RefUnwindSafe for BundleError
impl Send for BundleError
impl Sync for BundleError
impl Unpin for BundleError
impl UnsafeUnpin for BundleError
impl UnwindSafe for BundleError
Blanket Implementations§
impl<T> Allocation for T
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
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<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
key and return true if they are equal.