#[non_exhaustive]
pub enum FS_Error {
FSE_OK,
FSE_NOT_READY,
FSE_EXIST,
FSE_NOT_EXIST,
FSE_INVALID_PARAMETER,
FSE_DENIED,
FSE_INVALID_NAME,
FSE_INTERNAL,
FSE_NOT_IMPLEMENTED,
FSE_ALREADY_OPEN,
}
Expand description
API errors enumeration
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FSE_OK
< No error
FSE_NOT_READY
< FS not ready
FSE_EXIST
< File/Dir alrady exist
FSE_NOT_EXIST
< File/Dir does not exist
FSE_INVALID_PARAMETER
< Invalid API parameter
FSE_DENIED
< Access denied
FSE_INVALID_NAME
< Invalid name/path
FSE_INTERNAL
< Internal error
FSE_NOT_IMPLEMENTED
< Functon not implemented
FSE_ALREADY_OPEN
< File/Dir already opened
Trait Implementations
sourceimpl Try for FS_Error
impl Try for FS_Error
type Output = ()
type Output = ()
🔬This is a nightly-only experimental API. (
try_trait_v2
)The type of the value produced by
?
when not short-circuiting.type Residual = Result<Infallible, Error>
type Residual = Result<Infallible, Error>
🔬This is a nightly-only experimental API. (
try_trait_v2
)The type of the value passed to
FromResidual::from_residual
as part of ?
when short-circuiting. Read moresourceconst fn from_output(output: <FS_Error as Try>::Output) -> FS_Error
const fn from_output(output: <FS_Error as Try>::Output) -> FS_Error
🔬This is a nightly-only experimental API. (
try_trait_v2
)Constructs the type from its
Output
type. Read moresourceconst fn branch(
self
) -> ControlFlow<<FS_Error as Try>::Residual, <FS_Error as Try>::Output>
const fn branch(
self
) -> ControlFlow<<FS_Error as Try>::Residual, <FS_Error as Try>::Output>
🔬This is a nightly-only experimental API. (
try_trait_v2
)Used in
?
to decide whether the operator should produce a value
(because this returned ControlFlow::Continue
)
or propagate a value back to the caller
(because this returned ControlFlow::Break
). Read moreimpl Eq for FS_Error
impl StructuralEq for FS_Error
impl StructuralPartialEq for FS_Error
Auto Trait Implementations
impl RefUnwindSafe for FS_Error
impl Send for FS_Error
impl Sync for FS_Error
impl Unpin for FS_Error
impl UnwindSafe for FS_Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more