pub struct WaitGraph { /* private fields */ }Expand description
Wait-for graph for deadlock detection
Implementations§
Source§impl WaitGraph
impl WaitGraph
Sourcepub fn add_edge(&mut self, from: u64, to: u64)
pub fn add_edge(&mut self, from: u64, to: u64)
Add an edge: process from is waiting for process to
Sourcepub fn remove_edges(&mut self, from: u64)
pub fn remove_edges(&mut self, from: u64)
Remove all edges from a process (it’s no longer waiting)
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Get the number of nodes in the graph
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WaitGraph
impl RefUnwindSafe for WaitGraph
impl Send for WaitGraph
impl Sync for WaitGraph
impl Unpin for WaitGraph
impl UnwindSafe for WaitGraph
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)