Struct loopdev::LoopControl[][src]

pub struct LoopControl { /* fields omitted */ }

Interface to the loop control device: /dev/loop-control.

Methods

impl LoopControl
[src]

Opens the loop control device.

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]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for LoopControl

impl Sync for LoopControl