pub enum IoError {
BufferTooBig {
size: u64,
backtrace: BackTrace,
},
PoolCapacityExceeded {
size: u64,
capacity: u64,
in_use: u64,
backtrace: BackTrace,
},
UnsupportedStrides {
backtrace: BackTrace,
},
NotFound {
backtrace: BackTrace,
reason: Reason,
},
FreeError {
backtrace: BackTrace,
},
Unknown {
description: String,
backtrace: BackTrace,
},
UnsupportedIoOperation {
backtrace: BackTrace,
},
Execution(Box<ServerError>),
}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
Buffer size exceeds the max available
PoolCapacityExceeded
A memory pool with a fixed capacity cap is exhausted.
Unlike IoError::BufferTooBig (the allocation can never fit), this
means the working set exceeded the configured budget. Server execution
paths treat it as fatal — the budget is a hard contract, so failing
early beats silently growing — but callers that manage their own
working set may free pool memory and retry.
Fields
UnsupportedStrides
Strides aren’t supported for this copy operation on this runtime
NotFound
Memory wasn’t found in the memory pool
FreeError
Handle wasn’t found in the memory pool
Unknown
Unknown error happened during execution
UnsupportedIoOperation
The current IO operation is not supported
Execution(Box<ServerError>)
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>,
Source§impl Error for IoError
impl Error for IoError
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
use the Display impl or to_string()
Source§impl From<IoError> for LaunchError
impl From<IoError> for LaunchError
Source§fn from(source: IoError) -> LaunchError
fn from(source: IoError) -> LaunchError
Source§impl From<IoError> for ServerError
impl From<IoError> for ServerError
Source§fn from(source: IoError) -> ServerError
fn from(source: IoError) -> ServerError
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,
Auto Trait Implementations§
impl Freeze for IoError
impl RefUnwindSafe for IoError
impl Send for IoError
impl Sync for IoError
impl Unpin for IoError
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneExpand for Twhere
T: Clone,
impl<T> CloneExpand for Twhere
T: Clone,
fn __expand_clone_method(&self, _: &Scope) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more