Skip to main content

Module sensitive

Module sensitive 

Source
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§

GuardedOwnedView
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.
RepeatedView
A decoded repeated view that wipes live and outgrown collection storage. Borrowed elements retain their caller-owned input lifetime.
StackText
A bounded temporary text buffer whose entire storage is wiped on drop. Formatting writes directly into the owner, without intermediate heap strings.
Zeroizing
Zeroizing is a wrapper for any Z: Zeroize type which implements a Drop handler which zeroizes dropped values.

Enums§

FormatError
A bounded text-formatting failure without input data in its diagnostics.
GuardedViewError
An error constructing a GuardedOwnedView.

Traits§

GuardedArbitraryarbitrary
Depth-bounded arbitrary construction of a wipe-owning message or oneof.
Zeroize
Trait for securely erasing values from memory.
ZeroizeOnDrop
Marker trait signifying that this type will Zeroize::zeroize itself on Drop.