iota_util_mem/
memory_stats_noop.rs1#[derive(Clone, Debug)]
14pub struct Unimplemented;
15pub use Unimplemented as Error;
16
17#[cfg(feature = "std")]
18impl std::fmt::Display for Unimplemented {
19 fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result {
20 fmt.write_str("unimplemented")
21 }
22}
23
24#[derive(Clone)]
25pub struct MemoryAllocationTracker {}
26
27impl MemoryAllocationTracker {
28 pub fn new() -> Result<Self, Error> {
29 Err(Error)
30 }
31
32 pub fn snapshot(&self) -> Result<crate::MemoryAllocationSnapshot, Error> {
33 unimplemented!();
34 }
35}