stratis-storage / devicemapper-rs

A Rust library for using Linux devicemapper
Mozilla Public License 2.0
71 stars 27 forks source link

Could improve status() methods by using similar techniques to TargetLine type #231

Open mulkieran opened 6 years ago

mulkieran commented 6 years ago

I think that this would allow making status() method part of DmDevice trait, which is impossible now.

mulkieran commented 6 years ago

The idea is that the Status result could implement some generic type or alternatively that DmDevice could be parameterized on a second type.

mulkieran commented 5 years ago

This is made more tricky by the fact that linear and flakey targets have no status.