pub struct Resource(/* private fields */);Expand description
Implementations§
Source§impl Resource
 
impl 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§
Auto Trait Implementations§
impl !Freeze for Resource
impl !RefUnwindSafe for Resource
impl !Unpin for Resource
impl UnwindSafe for Resource
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