Enum loca::AllocErr [−][src]
Expand description
The AllocErr
error specifies whether an allocation failure is
specifically due to resource exhaustion or if it is due to
something wrong when combining the given input arguments with this
allocator.
Variants
Error due to hitting some resource limit or otherwise running out of memory. This condition strongly implies that some series of deallocations would allow a subsequent reissuing of the original allocation request to succeed.
Fields of Exhausted
request: Layout
Error due to allocator being fundamentally incapable of satisfying the original request. This condition implies that such an allocation request will never succeed on the given allocator, regardless of environment, memory pressure, or other contextual conditions.
For example, an allocator that does not support requests for large memory blocks might return this error variant.
Fields of Unsupported
details: &'static str