pub enum SchemaVersionError {
ZeroMajor,
InvalidVersion,
UnreviewedMajor,
InvalidHeader,
OutputTooSmall,
}Expand description
Schema-version validation failure.
Variants§
ZeroMajor
Major schema versions must be nonzero.
InvalidVersion
A schema version was not canonical major.minor decimal text.
UnreviewedMajor
The selected version differs from the reviewed major version.
InvalidHeader
The validation-only header name is invalid.
OutputTooSmall
Caller scratch cannot hold the complete encoded version.
Trait Implementations§
Source§impl Clone for SchemaVersionError
impl Clone for SchemaVersionError
Source§fn clone(&self) -> SchemaVersionError
fn clone(&self) -> SchemaVersionError
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 moreimpl Copy for SchemaVersionError
Source§impl Debug for SchemaVersionError
impl Debug for SchemaVersionError
Source§impl Display for SchemaVersionError
impl Display for SchemaVersionError
impl Eq for SchemaVersionError
Source§impl Error for SchemaVersionError
impl Error for SchemaVersionError
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 PartialEq for SchemaVersionError
impl PartialEq for SchemaVersionError
impl StructuralPartialEq for SchemaVersionError
Auto Trait Implementations§
impl Freeze for SchemaVersionError
impl RefUnwindSafe for SchemaVersionError
impl Send for SchemaVersionError
impl Sync for SchemaVersionError
impl Unpin for SchemaVersionError
impl UnsafeUnpin for SchemaVersionError
impl UnwindSafe for SchemaVersionError
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