pub enum ReceiptStoreError {
Show 15 variants
MissingStore {
path: PathBuf,
},
StoreNotDirectory {
path: PathBuf,
},
StoreUnreadable {
path: PathBuf,
source: Error,
},
InvalidReceiptId {
receipt_id: String,
},
MissingReceipt {
path: PathBuf,
},
ReceiptUnreadable {
path: PathBuf,
source: Error,
},
MalformedJson {
path: PathBuf,
message: String,
},
WrongSchema {
path: PathBuf,
schema: String,
},
MalformedReceipt {
path: PathBuf,
message: String,
},
IdFilenameMismatch {
path: PathBuf,
receipt_id: String,
file_stem: String,
},
ReceiptProofInvalid {
path: PathBuf,
receipt_id: String,
message: String,
},
ReceiptAlreadyExists {
receipt_id: String,
},
MalformedIndex {
path: PathBuf,
message: String,
},
ReceiptIndexStale {
path: PathBuf,
message: String,
},
UnsafePathProjection {
reason: String,
},
}Variants§
MissingStore
StoreNotDirectory
StoreUnreadable
InvalidReceiptId
MissingReceipt
ReceiptUnreadable
MalformedJson
WrongSchema
MalformedReceipt
IdFilenameMismatch
ReceiptProofInvalid
ReceiptAlreadyExists
MalformedIndex
ReceiptIndexStale
UnsafePathProjection
Implementations§
Source§impl ReceiptStoreError
impl ReceiptStoreError
pub fn public_message(&self, store_label: &ReceiptStoreLabel) -> String
Trait Implementations§
Source§impl Debug for ReceiptStoreError
impl Debug for ReceiptStoreError
Source§impl Display for ReceiptStoreError
impl Display for ReceiptStoreError
Source§impl Error for ReceiptStoreError
impl Error for ReceiptStoreError
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<ReceiptStoreError> for SkillRunError
impl From<ReceiptStoreError> for SkillRunError
Source§fn from(source: ReceiptStoreError) -> Self
fn from(source: ReceiptStoreError) -> Self
Converts to this type from the input type.
Source§impl From<ReceiptStoreError> for JournalProjectionError
impl From<ReceiptStoreError> for JournalProjectionError
Source§fn from(source: ReceiptStoreError) -> Self
fn from(source: ReceiptStoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ReceiptStoreError
impl !UnwindSafe for ReceiptStoreError
impl Freeze for ReceiptStoreError
impl Send for ReceiptStoreError
impl Sync for ReceiptStoreError
impl Unpin for ReceiptStoreError
impl UnsafeUnpin for ReceiptStoreError
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