pub type MemResource = Resource<MemDriver>;Expand description
In-memory storage resource.
Type alias for Resource<MemDriver>. Drop-in replacement for
MmapResource on platforms without filesystem access.
Aliased Type§
pub struct MemResource { /* private fields */ }Implementations§
Source§impl MemResource
impl MemResource
Sourcepub fn new(cancel: CancellationToken) -> Self
pub fn new(cancel: CancellationToken) -> Self
Create a new empty in-memory resource.
§Panics
Panics if MemDriver::open fails (should never happen with default options).