pub enum IoError {
BufferTooBig(usize),
UnsupportedStrides,
InvalidHandle,
Unknown(String),
UnsupportedIoOperation,
Execution(ExecutionError),
}Expand description
Error returned from create/read/write functions. Due to async execution not all errors
are able to be caught, so some IO errors will still panic.
Variants§
BufferTooBig(usize)
Buffer size exceeds the max available
UnsupportedStrides
Strides aren’t supported for this copy operation on this runtime
InvalidHandle
Handle wasn’t found in the memory pool
Unknown(String)
Unknown error happened during execution
UnsupportedIoOperation
The current IO operation is not supported
Execution(ExecutionError)
Can’t perform the IO operation because of a runtime error.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IoError
impl<'de> Deserialize<'de> for IoError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IoError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IoError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Error for IoError
impl Error for IoError
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 From<ExecutionError> for IoError
impl From<ExecutionError> for IoError
Source§fn from(value: ExecutionError) -> IoError
fn from(value: ExecutionError) -> IoError
Converts to this type from the input type.
Source§impl From<IoError> for LaunchError
impl From<IoError> for LaunchError
Source§fn from(value: IoError) -> LaunchError
fn from(value: IoError) -> LaunchError
Converts to this type from the input type.
Source§impl Serialize for IoError
impl Serialize for IoError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for IoError
impl StructuralPartialEq for IoError
Auto Trait Implementations§
impl Freeze for IoError
impl RefUnwindSafe for IoError
impl Send for IoError
impl Sync for IoError
impl Unpin for IoError
impl UnwindSafe for IoError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.