pub struct Blkio { /* private fields */ }Implementations§
Source§impl Blkio
impl Blkio
pub fn new(driver_name: &str) -> Result<Blkio>
pub fn state(&self) -> State
pub fn connect(&mut self) -> Result<()>
pub fn start(&mut self) -> Result<BlkioStartOutcome>
pub fn add_queue(&mut self, poll_queue: bool) -> Result<Blkioq>
pub fn get_bool(&self, name: &str) -> Result<bool>
pub fn get_i32(&self, name: &str) -> Result<i32>
pub fn get_str(&self, name: &str) -> Result<String>
pub fn get_u64(&self, name: &str) -> Result<u64>
pub fn set_bool(&mut self, name: &str, value: bool) -> Result<()>
pub fn set_i32(&mut self, name: &str, value: i32) -> Result<()>
pub fn set_str(&mut self, name: &str, value: &str) -> Result<()>
pub fn set_u64(&mut self, name: &str, value: u64) -> Result<()>
Sourcepub fn alloc_mem_region(&mut self, len: usize) -> Result<MemoryRegion>
pub fn alloc_mem_region(&mut self, len: usize) -> Result<MemoryRegion>
The allocated region is not mapped by this method.
If not freed manually, the region will be freed once the Blkio and all associated
Blkioqs are dropped.
Sourcepub fn free_mem_region(&mut self, region: &MemoryRegion)
pub fn free_mem_region(&mut self, region: &MemoryRegion)
The given region must not be mapped when this method is called.
Sourcepub fn map_mem_region(&mut self, region: &MemoryRegion) -> Result<()>
pub fn map_mem_region(&mut self, region: &MemoryRegion) -> Result<()>
An error is returned if the region is already mapped.
Sourcepub fn unmap_mem_region(&mut self, region: &MemoryRegion)
pub fn unmap_mem_region(&mut self, region: &MemoryRegion)
This does nothing if the region is not mapped.
Auto Trait Implementations§
impl Freeze for Blkio
impl !RefUnwindSafe for Blkio
impl Send for Blkio
impl Sync for Blkio
impl Unpin for Blkio
impl !UnwindSafe for Blkio
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