pub struct QuantumGarbageCollector {
pub gc_id: u64,
pub memory_manager: QuantumMemoryManager,
pub state_tracker: QuantumStateTracker,
pub coherence_monitor: CoherenceBasedGC,
pub reference_counter: QuantumReferenceCounter,
pub lifecycle_manager: QuantumLifecycleManager,
pub optimization_engine: MemoryOptimizationEngine,
pub collection_scheduler: GCScheduler,
pub performance_monitor: GCPerformanceMonitor,
pub allocation_tracker: AllocationTracker,
}
Expand description
Advanced Quantum Garbage Collection and Memory Management System
Fields§
§gc_id: u64
§memory_manager: QuantumMemoryManager
§state_tracker: QuantumStateTracker
§coherence_monitor: CoherenceBasedGC
§reference_counter: QuantumReferenceCounter
§lifecycle_manager: QuantumLifecycleManager
§optimization_engine: MemoryOptimizationEngine
§collection_scheduler: GCScheduler
§performance_monitor: GCPerformanceMonitor
§allocation_tracker: AllocationTracker
Implementations§
Source§impl QuantumGarbageCollector
Implementation of the Quantum Garbage Collector
impl QuantumGarbageCollector
Implementation of the Quantum Garbage Collector
Sourcepub fn allocate_quantum_memory(
&mut self,
allocation_request: QuantumAllocationRequest,
) -> Result<QuantumAllocationResult, QuantRS2Error>
pub fn allocate_quantum_memory( &mut self, allocation_request: QuantumAllocationRequest, ) -> Result<QuantumAllocationResult, QuantRS2Error>
Allocate quantum memory with automatic lifecycle management
Sourcepub fn execute_garbage_collection(
&mut self,
collection_mode: GCCollectionMode,
) -> Result<GCCollectionResult, QuantRS2Error>
pub fn execute_garbage_collection( &mut self, collection_mode: GCCollectionMode, ) -> Result<GCCollectionResult, QuantRS2Error>
Execute automatic garbage collection
Sourcepub fn demonstrate_gc_advantages(&mut self) -> QuantumGCAdvantageReport
pub fn demonstrate_gc_advantages(&mut self) -> QuantumGCAdvantageReport
Demonstrate quantum garbage collection advantages
Sourcepub fn optimize_memory_usage(
&mut self,
) -> Result<MemoryOptimizationResult, QuantRS2Error>
pub fn optimize_memory_usage( &mut self, ) -> Result<MemoryOptimizationResult, QuantRS2Error>
Optimize quantum memory usage
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QuantumGarbageCollector
impl RefUnwindSafe for QuantumGarbageCollector
impl Send for QuantumGarbageCollector
impl Sync for QuantumGarbageCollector
impl Unpin for QuantumGarbageCollector
impl UnwindSafe for QuantumGarbageCollector
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.