Available on crate feature
zeroize only.Expand description
Wipe-owning collections and support for opt-in generated cleanup. Opt-in owned storage for sensitive protobuf messages.
Collections wipe their values before releasing them. A list also wipes outgrown allocations; a map keeps keys and values in stable wipe-owned allocations so tree balancing only moves pointers.
Re-exports§
pub use map::Map;
Structs§
- Guarded
Owned View - An eager view with a private wire allocation that is wiped on drop.
- IterMut
- Mutable element borrows that cannot be converted into a mutable slice.
- List
- A repeated collection that wipes live elements, spare capacity and outgrown buffers.
- Map
- An ordered map with keys and values in stable wipe-owned allocations.
- MapView
- A decoded map view that wipes owned entry storage on growth and drop. Lookup and duplicate-key handling match the ordinary map view.
- Repeated
View - A decoded repeated view that wipes live and outgrown collection storage. Borrowed elements retain their caller-owned input lifetime.
- Stack
Text - A bounded temporary text buffer whose entire storage is wiped on drop. Formatting writes directly into the owner, without intermediate heap strings.
- Zeroizing
Zeroizingis a wrapper for anyZ: Zeroizetype which implements aDrophandler which zeroizes dropped values.
Enums§
- Format
Error - A bounded text-formatting failure without input data in its diagnostics.
- Guarded
View Error - An error constructing a
GuardedOwnedView.
Traits§
- Guarded
Arbitrary arbitrary - Depth-bounded arbitrary construction of a wipe-owning message or oneof.
- Zeroize
- Trait for securely erasing values from memory.
- Zeroize
OnDrop - Marker trait signifying that this type will
Zeroize::zeroizeitself onDrop.