#[non_exhaustive]pub struct InitialRegionConfig {
pub start: u64,
pub end: u64,
}Expand description
An initial target address range in DAMON core address units.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.start: u64Inclusive start address.
end: u64Exclusive end address.
Implementations§
Source§impl InitialRegionConfig
impl InitialRegionConfig
Sourcepub fn from_byte_range_exact(
start_bytes: u64,
end_bytes: u64,
unit: AddressUnit,
) -> Result<Self>
pub fn from_byte_range_exact( start_bytes: u64, end_bytes: u64, unit: AddressUnit, ) -> Result<Self>
Creates a region from byte boundaries that are exactly representable in unit.
Sourcepub fn from_byte_range_covering(
start_bytes: u64,
end_bytes: u64,
unit: AddressUnit,
) -> Result<Self>
pub fn from_byte_range_covering( start_bytes: u64, end_bytes: u64, unit: AddressUnit, ) -> Result<Self>
Creates the smallest core-unit region covering a non-empty byte range.
Trait Implementations§
Source§impl Clone for InitialRegionConfig
impl Clone for InitialRegionConfig
impl Copy for InitialRegionConfig
Source§impl Debug for InitialRegionConfig
impl Debug for InitialRegionConfig
impl Eq for InitialRegionConfig
Source§impl PartialEq for InitialRegionConfig
impl PartialEq for InitialRegionConfig
impl StructuralPartialEq for InitialRegionConfig
Auto Trait Implementations§
impl Freeze for InitialRegionConfig
impl RefUnwindSafe for InitialRegionConfig
impl Send for InitialRegionConfig
impl Sync for InitialRegionConfig
impl Unpin for InitialRegionConfig
impl UnsafeUnpin for InitialRegionConfig
impl UnwindSafe for InitialRegionConfig
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