pub enum ApplicationError {
InvalidIdentity {
kind: &'static str,
value: String,
reason: &'static str,
},
Duplicate {
kind: &'static str,
identity: String,
},
Collision {
kind: &'static str,
identity: String,
reason: String,
},
Missing {
kind: &'static str,
identity: String,
},
InvalidSpec(String),
UnsupportedVersion {
expected: u32,
actual: u32,
},
NonCanonical(&'static str),
Canonical(String),
}Expand description
Errors raised while compiling portable application contracts.
Variants§
InvalidIdentity
Duplicate
Collision
Missing
InvalidSpec(String)
UnsupportedVersion
NonCanonical(&'static str)
Canonical(String)
Trait Implementations§
Source§impl Clone for ApplicationError
impl Clone for ApplicationError
Source§fn clone(&self) -> ApplicationError
fn clone(&self) -> ApplicationError
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 ApplicationError
impl Debug for ApplicationError
Source§impl Display for ApplicationError
impl Display for ApplicationError
impl Eq for ApplicationError
Source§impl Error for ApplicationError
impl Error for ApplicationError
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 From<Error> for ApplicationError
impl From<Error> for ApplicationError
Source§impl PartialEq for ApplicationError
impl PartialEq for ApplicationError
impl StructuralPartialEq for ApplicationError
Auto Trait Implementations§
impl Freeze for ApplicationError
impl RefUnwindSafe for ApplicationError
impl Send for ApplicationError
impl Sync for ApplicationError
impl Unpin for ApplicationError
impl UnsafeUnpin for ApplicationError
impl UnwindSafe for ApplicationError
Blanket Implementations§
Source§impl<T> AggregateBuilder for T
impl<T> AggregateBuilder for T
fn aggregate<A: Aggregate>(self) -> AggregateRepository<Self, A>
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<T> Queueable for T
impl<T> Queueable for T
Source§fn queued(self) -> QueuedRepository<Self, InMemoryLockManager>
fn queued(self) -> QueuedRepository<Self, InMemoryLockManager>
Wrap with the default async lock manager. Pair with
.aggregate::<T>() for per-aggregate serialization over the async
repository surface.Source§fn queued_with<L: LockManager>(
self,
lock_manager: L,
) -> QueuedRepository<Self, L>
fn queued_with<L: LockManager>( self, lock_manager: L, ) -> QueuedRepository<Self, L>
Wrap with a custom async lock manager.