pub struct RegionDescriptor { /* private fields */ }Expand description
Configuration metadata for a single static memory region managed by RegionManager.
Implementations§
Source§impl RegionDescriptor
impl RegionDescriptor
Sourcepub const fn new(capabilities: CapabilityFlags) -> Self
pub const fn new(capabilities: CapabilityFlags) -> Self
Creates a region descriptor with the given capability flags and no extra DMA alignment
constraint (dma_alignment = 1).
Sourcepub const fn with_dma_alignment(self, dma_alignment: usize) -> Self
pub const fn with_dma_alignment(self, dma_alignment: usize) -> Self
Sets the minimum address and size alignment required when serving
CapabilityFlags::DirectMemoryAccess allocations from this region.
§Panics
Panics if dma_alignment is not a power of two.
Trait Implementations§
Source§impl Clone for RegionDescriptor
impl Clone for RegionDescriptor
Source§fn clone(&self) -> RegionDescriptor
fn clone(&self) -> RegionDescriptor
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 RegionDescriptor
impl Debug for RegionDescriptor
Source§impl PartialEq for RegionDescriptor
impl PartialEq for RegionDescriptor
Source§fn eq(&self, other: &RegionDescriptor) -> bool
fn eq(&self, other: &RegionDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RegionDescriptor
impl Eq for RegionDescriptor
impl StructuralPartialEq for RegionDescriptor
Auto Trait Implementations§
impl Freeze for RegionDescriptor
impl RefUnwindSafe for RegionDescriptor
impl Send for RegionDescriptor
impl Sync for RegionDescriptor
impl Unpin for RegionDescriptor
impl UnsafeUnpin for RegionDescriptor
impl UnwindSafe for RegionDescriptor
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