pub struct DefragmentationInfo<'pool> {
pub pool: Option<&'pool Pool>,
pub max_bytes: u64,
pub max_allocations: usize,
pub algorithm: DefragmentationAlgorithm,
}Expand description
Bounded relocation planning. Zero limits produce an empty pass.
Fields§
§pool: Option<&'pool Pool>§max_bytes: u64§max_allocations: usize§algorithm: DefragmentationAlgorithmImplementations§
Source§impl<'pool> DefragmentationInfo<'pool>
impl<'pool> DefragmentationInfo<'pool>
Sourcepub fn set_pool(self, value: Option<&'pool Pool>) -> Self
pub fn set_pool(self, value: Option<&'pool Pool>) -> Self
Set pool and return the updated record.
Sourcepub fn set_max_bytes(self, value: u64) -> Self
pub fn set_max_bytes(self, value: u64) -> Self
Set max_bytes and return the updated record.
Sourcepub fn set_max_allocations(self, value: usize) -> Self
pub fn set_max_allocations(self, value: usize) -> Self
Set max_allocations and return the updated record.
Sourcepub fn set_algorithm(self, value: DefragmentationAlgorithm) -> Self
pub fn set_algorithm(self, value: DefragmentationAlgorithm) -> Self
Set algorithm and return the updated record.
Trait Implementations§
Source§impl<'pool> Clone for DefragmentationInfo<'pool>
impl<'pool> Clone for DefragmentationInfo<'pool>
impl<'pool> Copy for DefragmentationInfo<'pool>
Source§impl<'pool> Debug for DefragmentationInfo<'pool>
impl<'pool> Debug for DefragmentationInfo<'pool>
Auto Trait Implementations§
impl<'pool> Forget for DefragmentationInfo<'pool>
impl<'pool> Freeze for DefragmentationInfo<'pool>
impl<'pool> Move for DefragmentationInfo<'pool>
impl<'pool> RefUnwindSafe for DefragmentationInfo<'pool>
impl<'pool> Send for DefragmentationInfo<'pool>
impl<'pool> Sync for DefragmentationInfo<'pool>
impl<'pool> Unpin for DefragmentationInfo<'pool>
impl<'pool> UnsafeUnpin for DefragmentationInfo<'pool>
impl<'pool> UnwindSafe for DefragmentationInfo<'pool>
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