pub enum MigrationCodecError {
CollectionMismatch,
NonAdjacentVersion {
from: u32,
to: u32,
},
PrimaryKeyMismatch,
MixedStagingSet,
DuplicateSourceRecord,
RecordIdTooLarge(usize),
TargetRecordTooLarge(usize),
Schema(SchemaError),
UnsupportedFormat,
InvalidEncoding(String),
NonCanonicalEncoding,
}Expand description
Validation or canonical-codec failure for migration protocol objects.
Variants§
CollectionMismatch
The transition crossed collection identities.
NonAdjacentVersion
The target did not immediately follow its predecessor.
PrimaryKeyMismatch
The stable primary-key contract changed.
MixedStagingSet
Stages from different migrations or schema transitions were combined.
DuplicateSourceRecord
Two stages selected the same source primary key.
RecordIdTooLarge(usize)
A source key exceeded the protocol bound.
TargetRecordTooLarge(usize)
A target materialization exceeded the operation payload bound.
Schema(SchemaError)
A nested schema was invalid.
UnsupportedFormat
The object format major, minor, or kind is unsupported.
InvalidEncoding(String)
The binary object was malformed.
NonCanonicalEncoding
The object was valid CBOR but not its unique representation.
Trait Implementations§
Source§impl Clone for MigrationCodecError
impl Clone for MigrationCodecError
Source§fn clone(&self) -> MigrationCodecError
fn clone(&self) -> MigrationCodecError
Returns a duplicate of the value. Read more
1.0.0 · 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 MigrationCodecError
impl Debug for MigrationCodecError
Source§impl Display for MigrationCodecError
impl Display for MigrationCodecError
Source§impl Error for MigrationCodecError
impl Error for MigrationCodecError
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<SchemaError> for MigrationCodecError
impl From<SchemaError> for MigrationCodecError
Source§fn from(source: SchemaError) -> Self
fn from(source: SchemaError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MigrationCodecError
impl PartialEq for MigrationCodecError
impl Eq for MigrationCodecError
impl StructuralPartialEq for MigrationCodecError
Auto Trait Implementations§
impl Freeze for MigrationCodecError
impl RefUnwindSafe for MigrationCodecError
impl Send for MigrationCodecError
impl Sync for MigrationCodecError
impl Unpin for MigrationCodecError
impl UnwindSafe for MigrationCodecError
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