pub struct Region { /* private fields */ }Expand description
Methods from Deref<Target = Resource>§
Sourcepub fn request_region(
    &self,
    start: ResourceSize,
    size: ResourceSize,
    name: CString,
    flags: Flags,
) -> Option<Region>
 
pub fn request_region( &self, start: ResourceSize, size: ResourceSize, name: CString, flags: Flags, ) -> Option<Region>
Requests a resource region.
Exclusive access will be given and the region will be marked as busy.
Further calls to Self::request_region will return None if
the region, or a part of it, is already in use.
Sourcepub fn size(&self) -> ResourceSize
 
pub fn size(&self) -> ResourceSize
Returns the size of the resource.
Sourcepub fn start(&self) -> ResourceSize
 
pub fn start(&self) -> ResourceSize
Returns the start address of the resource.
Trait Implementations§
impl Send for Region
impl Sync for Region
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Unpin for Region
impl UnwindSafe for Region
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> PinInit<T> for T
 
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
 
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes 
slot. Read more