pub enum MemoryAllocationError {
NoMemoryAllocation,
NoMoreAllocationSlots,
InvalidAllocationId,
FailedDeAllocation,
TaskFailure(TaskErrorCode),
FailedAllocationReading(MemoryId),
MemoryReadError(MemoryReaderError),
MemoryWriteError(MemoryWriterError),
}
Variants§
NoMemoryAllocation
NoMoreAllocationSlots
InvalidAllocationId
FailedDeAllocation
TaskFailure(TaskErrorCode)
FailedAllocationReading(MemoryId)
MemoryReadError(MemoryReaderError)
MemoryWriteError(MemoryWriterError)
Trait Implementations§
Source§impl Debug for MemoryAllocationError
impl Debug for MemoryAllocationError
Source§impl Display for MemoryAllocationError
impl Display for MemoryAllocationError
Source§impl Error for MemoryAllocationError
impl Error for MemoryAllocationError
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<MemoryAllocationError> for BinaryReadError
impl From<MemoryAllocationError> for BinaryReadError
Source§fn from(value: MemoryAllocationError) -> Self
fn from(value: MemoryAllocationError) -> Self
Converts to this type from the input type.
Source§impl From<MemoryAllocationError> for WASMErrors
impl From<MemoryAllocationError> for WASMErrors
Source§fn from(value: MemoryAllocationError) -> Self
fn from(value: MemoryAllocationError) -> Self
Converts to this type from the input type.
Source§impl From<MemoryReaderError> for MemoryAllocationError
impl From<MemoryReaderError> for MemoryAllocationError
Source§fn from(value: MemoryReaderError) -> Self
fn from(value: MemoryReaderError) -> Self
Converts to this type from the input type.
Source§impl From<MemoryWriterError> for MemoryAllocationError
impl From<MemoryWriterError> for MemoryAllocationError
Source§fn from(value: MemoryWriterError) -> Self
fn from(value: MemoryWriterError) -> Self
Converts to this type from the input type.
Source§impl From<ReturnValueError> for MemoryAllocationError
impl From<ReturnValueError> for MemoryAllocationError
Source§fn from(value: ReturnValueError) -> Self
fn from(value: ReturnValueError) -> Self
Converts to this type from the input type.
Source§impl From<TaskErrorCode> for MemoryAllocationError
impl From<TaskErrorCode> for MemoryAllocationError
Source§fn from(value: TaskErrorCode) -> Self
fn from(value: TaskErrorCode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MemoryAllocationError
impl RefUnwindSafe for MemoryAllocationError
impl !Send for MemoryAllocationError
impl !Sync for MemoryAllocationError
impl Unpin for MemoryAllocationError
impl UnwindSafe for MemoryAllocationError
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