pub struct RootSnapshot { /* private fields */ }Expand description
A complete, ordered view of roots visible at one machine safepoint.
Implementations§
Source§impl RootSnapshot
impl RootSnapshot
Sourcepub fn scan(
source: &impl ManagedRootSource,
budget: WorkLimit,
) -> Result<Self, RootScanError>
pub fn scan( source: &impl ManagedRootSource, budget: WorkLimit, ) -> Result<Self, RootScanError>
Materializes all roots atomically or returns exact budget exhaustion.
Trait Implementations§
Source§impl Clone for RootSnapshot
impl Clone for RootSnapshot
Source§fn clone(&self) -> RootSnapshot
fn clone(&self) -> RootSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RootSnapshot
impl Debug for RootSnapshot
impl Eq for RootSnapshot
Source§impl PartialEq for RootSnapshot
impl PartialEq for RootSnapshot
impl StructuralPartialEq for RootSnapshot
Auto Trait Implementations§
impl Freeze for RootSnapshot
impl RefUnwindSafe for RootSnapshot
impl Send for RootSnapshot
impl Sync for RootSnapshot
impl Unpin for RootSnapshot
impl UnsafeUnpin for RootSnapshot
impl UnwindSafe for RootSnapshot
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