Explicitly support memory size changing in between allocations (#9477)

Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
Sergei Shulepov
2021-08-03 16:22:01 +02:00
committed by GitHub
parent 3b471704d9
commit c816ebc4b3
2 changed files with 61 additions and 0 deletions
+3
View File
@@ -24,6 +24,9 @@ pub enum Error {
/// Allocator run out of space.
#[error("Allocator ran out of space")]
AllocatorOutOfSpace,
/// The client passed a memory instance which is smaller than previously observed.
#[error("Shrinking of the underlying memory is observed")]
MemoryShrinked,
/// Some other error occurred.
#[error("Other: {0}")]
Other(&'static str),