[][src]Struct libblkid_rs::BlkidDev

pub struct BlkidDev(_);

Block device found by blkid

Implementations

impl BlkidDev[src]

pub fn devname(&self) -> Result<&str>[src]

Get the device name for a blkid device

pub fn devsize(&self) -> Result<BlkidSize>[src]

Get the size of a device as reported by the cache

pub fn tag_iter(&self) -> BlkidTagIter

Important traits for BlkidTagIter

impl Iterator for BlkidTagIter type Item = (String, String);
[src]

Iterate through tags in associated with the given block device

pub fn has_tag(&self, type_: &str, value: &str) -> Result<bool>[src]

Return true if the given device has a specified tag

Auto Trait Implementations

impl RefUnwindSafe for BlkidDev

impl !Send for BlkidDev

impl !Sync for BlkidDev

impl Unpin for BlkidDev

impl UnwindSafe for BlkidDev

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.