pub enum ValueCodecIdError {
Empty,
EmptySegment,
InvalidSegment,
}Expand description
A stable value-codec ID protocol violation.
§Examples
use qubit_codec::ValueCodecId;
use qubit_codec::ValueCodecIdError;
let error = ValueCodecId::try_new("").unwrap_err();
assert_eq!(error, ValueCodecIdError::Empty);
assert_eq!(error.to_string(), "value codec ID cannot be empty");Variants§
Empty
The complete ID is empty.
EmptySegment
One dot-separated segment is empty.
InvalidSegment
One segment has an invalid initial byte or character.
Trait Implementations§
Source§impl Clone for ValueCodecIdError
impl Clone for ValueCodecIdError
impl Copy for ValueCodecIdError
Source§impl Debug for ValueCodecIdError
impl Debug for ValueCodecIdError
Source§impl Display for ValueCodecIdError
impl Display for ValueCodecIdError
impl Eq for ValueCodecIdError
Source§impl Error for ValueCodecIdError
impl Error for ValueCodecIdError
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 ValueCodecIdError
impl PartialEq for ValueCodecIdError
impl StructuralPartialEq for ValueCodecIdError
Auto Trait Implementations§
impl Forget for ValueCodecIdError
impl Freeze for ValueCodecIdError
impl RefUnwindSafe for ValueCodecIdError
impl Send for ValueCodecIdError
impl Sync for ValueCodecIdError
impl Unpin for ValueCodecIdError
impl UnsafeUnpin for ValueCodecIdError
impl UnwindSafe for ValueCodecIdError
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