pub struct DiskTrace {
path: PathBuf,
file: File,
config: PrettyConfig,
data_id: usize,
}Available on (crate features
trace or replay) and crate feature trace only.Fields§
§path: PathBuf§file: File§config: PrettyConfig§data_id: usizeImplementations§
Trait Implementations§
Source§impl Trace for DiskTrace
impl Trace for DiskTrace
Source§fn make_binary(&mut self, kind: DataKind, data: &[u8]) -> Data
fn make_binary(&mut self, kind: DataKind, data: &[u8]) -> Data
Store [u8] data in the trace.
Using a string kind is probably a bug, but should work as long as the
data is UTF-8.
Source§fn make_string(&mut self, kind: DataKind, data: &str) -> Data
fn make_string(&mut self, kind: DataKind, data: &str) -> Data
Store str data in the trace.
Using a binary kind is fine, but it’s not clear why not use
make_binary instead.
fn add(&mut self, action: Action<'_, PointerReferences>)
Auto Trait Implementations§
impl Freeze for DiskTrace
impl RefUnwindSafe for DiskTrace
impl Send for DiskTrace
impl Sync for DiskTrace
impl Unpin for DiskTrace
impl UnwindSafe for DiskTrace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more