Enum wasmer_wasix::FsError
source · pub enum FsError {
Show 25 variants
BaseNotDirectory,
NotAFile,
InvalidFd,
AlreadyExists,
Lock,
IOError,
AddressInUse,
AddressNotAvailable,
BrokenPipe,
ConnectionAborted,
ConnectionRefused,
ConnectionReset,
Interrupted,
InvalidData,
InvalidInput,
NotConnected,
EntryNotFound,
NoDevice,
PermissionDenied,
TimedOut,
UnexpectedEof,
WouldBlock,
WriteZero,
DirectoryNotEmpty,
UnknownError,
}
Expand description
Error type for external users
Variants§
BaseNotDirectory
The fd given as a base was not a directory so the operation was not possible
NotAFile
Expected a file but found not a file
InvalidFd
The fd given was not usable
AlreadyExists
File exists
Lock
The filesystem has failed to lock a resource.
IOError
Something failed when doing IO. These errors can generally not be handled. It may work if tried again.
AddressInUse
The address was in use
AddressNotAvailable
The address could not be found
BrokenPipe
A pipe was closed
ConnectionAborted
The connection was aborted
ConnectionRefused
The connection request was refused
ConnectionReset
The connection was reset
Interrupted
The operation was interrupted before it could finish
InvalidData
Invalid internal data, if the argument data is invalid, use InvalidInput
InvalidInput
The provided data is invalid
NotConnected
Could not perform the operation because there was not an open connection
EntryNotFound
The requested file or directory could not be found
NoDevice
The requested device couldn’t be accessed
PermissionDenied
Caller was not allowed to perform this operation
TimedOut
The operation did not complete within the given amount of time
UnexpectedEof
Found EOF when EOF was not expected
WouldBlock
Operation would block, this error lets the caller know that they can try again
WriteZero
A call to write returned 0
DirectoryNotEmpty
Directory not Empty
UnknownError
Some other unhandled error. If you see this, it’s probably a bug.
Trait Implementations§
source§impl Error for FsError
impl Error for FsError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl PartialEq<FsError> for FsError
impl PartialEq<FsError> for FsError
impl Copy for FsError
impl Eq for FsError
impl StructuralEq for FsError
impl StructuralPartialEq for FsError
Auto Trait Implementations§
impl RefUnwindSafe for FsError
impl Send for FsError
impl Sync for FsError
impl Unpin for FsError
impl UnwindSafe for FsError
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.