pub enum BlobDeclError {
MissingColumn {
table: String,
column: String,
},
Sqlite(Error),
Changeset(ChangesetError),
InvalidSize {
table: String,
value: i64,
},
MissingHash {
table: String,
row_id: String,
},
ChangesetWalkMismatch {
old_count: usize,
new_count: usize,
},
MissingPublicationPrimaryKey {
table: String,
},
MissingPublicationRow {
table: String,
primary_key: String,
},
MissingPublicationBlob {
table: String,
primary_key: String,
},
PublicationBlobMismatch {
table: String,
primary_key: String,
changed_blob_id: String,
row_blob_id: String,
},
WriteOnceBlobRepointed {
table: String,
blob_id: String,
},
}Expand description
Why building the blob-declaration model failed.
Variants§
MissingColumn
A declared blob column is absent from the table’s live schema.
Sqlite(Error)
A schema read (PRAGMA table_info) failed.
Changeset(ChangesetError)
A captured host changeset could not be read.
InvalidSize
A row’s declared size column is negative.
MissingHash
A row names a blob but has no content hash.
ChangesetWalkMismatch
New and old changeset walks produced different row counts.
MissingPublicationPrimaryKey
A blob-bearing INSERT or UPDATE has no primary key.
MissingPublicationRow
The transaction row named by a blob-bearing change is absent.
MissingPublicationBlob
The transaction row named by a blob-bearing change no longer carries a blob.
PublicationBlobMismatch
The transaction row carries a different blob than its change introduced.
WriteOnceBlobRepointed
A WriteOnce changeset update changed the
row’s blob-id column, contrary to its declaration.
Trait Implementations§
Source§impl Debug for BlobDeclError
impl Debug for BlobDeclError
Source§impl Display for BlobDeclError
impl Display for BlobDeclError
Source§impl Error for BlobDeclError
impl Error for BlobDeclError
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<BlobDeclError> for DbError
impl From<BlobDeclError> for DbError
Source§fn from(source: BlobDeclError) -> Self
fn from(source: BlobDeclError) -> Self
Converts to this type from the input type.
Source§impl From<BlobDeclError> for SnapshotImageError
impl From<BlobDeclError> for SnapshotImageError
Source§fn from(source: BlobDeclError) -> Self
fn from(source: BlobDeclError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlobDeclError
impl !RefUnwindSafe for BlobDeclError
impl Send for BlobDeclError
impl Sync for BlobDeclError
impl Unpin for BlobDeclError
impl UnsafeUnpin for BlobDeclError
impl !UnwindSafe for BlobDeclError
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