Struct loopdev::LoopControl [−][src]
pub struct LoopControl { /* fields omitted */ }
Interface to the loop control device: /dev/loop-control
.
Methods
impl LoopControl
[src]
impl LoopControl
pub fn open() -> Result<LoopControl>
[src]
pub fn open() -> Result<LoopControl>
Opens the loop control device.
pub fn next_free(&self) -> Result<LoopDevice>
[src]
pub fn next_free(&self) -> Result<LoopDevice>
Finds and opens the next available loop device.
Examples
use loopdev::LoopControl; let lc = LoopControl::open().unwrap(); let ld = lc.next_free().unwrap(); println!("{}", ld.path().unwrap().display());
Trait Implementations
impl Debug for LoopControl
[src]
impl Debug for LoopControl
Auto Trait Implementations
impl Send for LoopControl
impl Send for LoopControl
impl Sync for LoopControl
impl Sync for LoopControl