#[repr(i32)]pub enum FsCoreErrorCode {
Ok = 0,
Io = 1,
ShortRead = 2,
ReadOnly = 3,
OutOfBounds = 4,
Custom = 5,
NullArg = 6,
Panic = 7,
BadString = 8,
}Expand description
Numeric error codes mirrored across every sister crate’s C ABI.
#[repr(i32)] so the layout is identical to the matching C enum.
Variants§
Ok = 0
Success.
Io = 1
Underlying I/O failed.
ShortRead = 2
EOF before the requested range was satisfied.
ReadOnly = 3
Write attempted on a read-only device.
OutOfBounds = 4
Read or write past the end of the device.
Custom = 5
Driver-specific error — message in the thread-local last-error.
NullArg = 6
One of the input pointers was null.
Panic = 7
catch_unwind caught a panic crossing the FFI boundary.
BadString = 8
Path string was not valid UTF-8 (or NUL-terminated).
Trait Implementations§
Source§impl Clone for FsCoreErrorCode
impl Clone for FsCoreErrorCode
Source§fn clone(&self) -> FsCoreErrorCode
fn clone(&self) -> FsCoreErrorCode
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 FsCoreErrorCode
Source§impl Debug for FsCoreErrorCode
impl Debug for FsCoreErrorCode
impl Eq for FsCoreErrorCode
Source§impl PartialEq for FsCoreErrorCode
impl PartialEq for FsCoreErrorCode
Source§fn eq(&self, other: &FsCoreErrorCode) -> bool
fn eq(&self, other: &FsCoreErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FsCoreErrorCode
Auto Trait Implementations§
impl Freeze for FsCoreErrorCode
impl RefUnwindSafe for FsCoreErrorCode
impl Send for FsCoreErrorCode
impl Sync for FsCoreErrorCode
impl Unpin for FsCoreErrorCode
impl UnsafeUnpin for FsCoreErrorCode
impl UnwindSafe for FsCoreErrorCode
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