Expand description
§tor-memquota-cost
Cost-tracking trait for use with tor-memquota.
This is a separate crate so that crates that want to add a memory cost to a
struct can do so without depending on the full tor-memquota.
§Compile-time features
-
memquota– Actually enable memory quota tracking. Without this feature, all the actual functionality is stubbed out. This provides a convenient way of conditionally enabling memory tracking. -
full– Enable all features above.
License: MIT OR Apache-2.0
Re-exports§
pub use if_enabled::EnabledToken;pub use memory_cost::HasMemoryCost;pub use memory_cost_derive::HasMemoryCostStructural;pub use memory_cost_derive::assert_copy_static;
Modules§
- if_
enabled 🔒 - Helper type for disabling memory tracking when not wanted
- memory_
cost HasMemoryCostand typed memory cost tracking- memory_
cost_ 🔒derive - Deriving
HasMemoryCost
Macros§
- derive_
deftly_ template_ HasMemory Cost - Derive
HasMemoryCost - memory_
cost_ structural_ copy - Implement
HasMemoryCostStructuralforCopytypes