#[repr(i32)]pub enum AsdfValueErr {
Unknown = -2,
NotFound = -1,
Ok = 0,
TypeMismatch = 1,
ParseFailure = 2,
EmitFailure = 3,
Overflow = 4,
Oom = 5,
ReadOnly = 6,
}Expand description
Return codes for value access, mirroring asdf_value_err_t.
Note the negative discriminants: OK is zero with errors on both sides,
so a caller testing err == ASDF_VALUE_OK is the only correct check.
Variants§
Unknown = -2
An unspecified error.
NotFound = -1
The path does not exist in the tree.
Ok = 0
Success.
TypeMismatch = 1
The value is not of the requested type.
ParseFailure = 2
A tagged value could not be parsed as its tag claims.
EmitFailure = 3
A value could not be serialized.
Overflow = 4
A numeric value does not fit the requested C type.
Oom = 5
Allocation failed.
ReadOnly = 6
The file or value is read-only.
Trait Implementations§
Source§impl Clone for AsdfValueErr
impl Clone for AsdfValueErr
impl Copy for AsdfValueErr
Source§impl Debug for AsdfValueErr
impl Debug for AsdfValueErr
impl Eq for AsdfValueErr
Source§impl PartialEq for AsdfValueErr
impl PartialEq for AsdfValueErr
impl StructuralPartialEq for AsdfValueErr
Auto Trait Implementations§
impl Freeze for AsdfValueErr
impl RefUnwindSafe for AsdfValueErr
impl Send for AsdfValueErr
impl Sync for AsdfValueErr
impl Unpin for AsdfValueErr
impl UnsafeUnpin for AsdfValueErr
impl UnwindSafe for AsdfValueErr
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