pub struct OwnershipLog { /* private fields */ }Expand description
A log of ownership transfer events for debugging.
Implementations§
Source§impl OwnershipLog
impl OwnershipLog
Sourcepub fn record_transfer(&mut self, object_id: u64, from: &str, to: &str, ts: u64)
pub fn record_transfer(&mut self, object_id: u64, from: &str, to: &str, ts: u64)
Record a transfer.
Sourcepub fn events_for(&self, object_id: u64) -> Vec<&OwnershipEvent>
pub fn events_for(&self, object_id: u64) -> Vec<&OwnershipEvent>
Events for a specific object.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OwnershipLog
impl RefUnwindSafe for OwnershipLog
impl Send for OwnershipLog
impl Sync for OwnershipLog
impl Unpin for OwnershipLog
impl UnsafeUnpin for OwnershipLog
impl UnwindSafe for OwnershipLog
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