pub enum DraftError {
Lys(String),
Bound,
CursorRepeated,
IdRepeated,
ApprovalUnavailable,
ReceiptMismatch,
Store,
StartupRepeated,
Acknowledgment {
draft: String,
name: String,
},
Contract,
}Expand description
Named failures contain no token, prepared words or HTTP response body.
Variants§
Lys(String)
Lys’s shared consumer refused the HTTP contract by its own name.
Bound
A configured positive byte, page or count bound was exceeded.
CursorRepeated
A continuation revisited an earlier cursor.
IdRepeated
The same id was presented again in one pull.
No authenticated approver evidence can be read for these exact words.
ReceiptMismatch
The durable receipt describes another immutable request.
Store
A target or receipt could not be read, committed or published.
StartupRepeated
Startup has already signalled its one pull.
Acknowledgment
Lys could not acknowledge a receipt that is already committed.
Fields
Contract
The shared consumer refused the immutable execution contract.
Trait Implementations§
Source§impl Debug for DraftError
impl Debug for DraftError
Source§impl Display for DraftError
impl Display for DraftError
Source§impl Error for DraftError
impl Error for DraftError
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<DraftError> for ServerError
impl From<DraftError> for ServerError
Source§fn from(error: DraftError) -> Self
fn from(error: DraftError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DraftError
impl RefUnwindSafe for DraftError
impl Send for DraftError
impl Sync for DraftError
impl Unpin for DraftError
impl UnsafeUnpin for DraftError
impl UnwindSafe for DraftError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: '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