Module arena

Source
Expand description

Safe bindings for the driver runtime arena stable ABI

Structs§

Arena
Implements a memory arena allocator to be used with the Fuchsia Driver Runtime when sending and receiving from channels.
ArenaBox
Holds a reference to data of type T in an Arena with lifetime 'a, and ensures that the object is properly dropped before the Arena goes out of scope.
ArenaRc
An equivalent to ArenaBox that holds onto a reference to the arena to allow it to have static lifetime, and implements Clone allowing it to be shared. Since it’s shared, you can’t get a mutable reference to it back without using Self::try_unwrap to get the inner ArenaStaticBox.
ArenaStaticBox
An equivalent to ArenaBox that holds onto a reference to the arena to allow it to have static lifetime.
ArenaWeak
A weak reference to an ArenaRc.
IntoIter
The implementation for an IntoIterator of an ArenaBox of a slice that manages the memory behind it and ensures that it’s cleaned up.

Type Aliases§

fdf_arena_t