[]Struct gio::UnixMountPoint

pub struct UnixMountPoint(_);

Defines a Unix mount point (e.g. <filename>/dev</filename>). This corresponds roughly to a fstab entry.

Feature: v2_54

Implementations

impl UnixMountPoint[src]

pub fn get_mount_points() -> (Vec<UnixMountPoint>, u64)[src]

pub fn is_changed_since(time: u64) -> bool[src]

impl UnixMountPoint[src]

pub fn get_device_path(&self) -> Option<PathBuf>[src]

Gets the device path for a unix mount point.

Feature: v2_54

Returns

a string containing the device path.

pub fn get_fs_type(&self) -> Option<GString>[src]

Gets the file system type for the mount point.

Feature: v2_54

Returns

a string containing the file system type.

pub fn get_mount_path(&self) -> Option<PathBuf>[src]

Gets the mount path for a unix mount point.

Feature: v2_54

Returns

a string containing the mount path.

pub fn get_options(&self) -> Option<GString>[src]

Gets the options for the mount point.

Feature: v2_54

Returns

a string containing the options.

pub fn guess_can_eject(&self) -> bool[src]

Guesses whether a Unix mount point can be ejected.

Feature: v2_54

Returns

true if self is deemed to be ejectable.

pub fn guess_icon(&self) -> Option<Icon>[src]

Guesses the icon of a Unix mount point.

Feature: v2_54

Returns

a Icon

pub fn guess_name(&self) -> Option<GString>[src]

Guesses the name of a Unix mount point. The result is a translated string.

Feature: v2_54

Returns

A newly allocated string that must be freed with g_free

pub fn guess_symbolic_icon(&self) -> Option<Icon>[src]

Guesses the symbolic icon of a Unix mount point.

Feature: v2_54

Returns

a Icon

pub fn is_loopback(&self) -> bool[src]

Checks if a unix mount point is a loopback device.

Feature: v2_54

Returns

true if the mount point is a loopback. false otherwise.

pub fn is_readonly(&self) -> bool[src]

Checks if a unix mount point is read only.

Feature: v2_54

Returns

true if a mount point is read only.

pub fn is_user_mountable(&self) -> bool[src]

Checks if a unix mount point is mountable by the user.

Feature: v2_54

Returns

true if the mount point is user mountable.

Trait Implementations

impl Clone for UnixMountPoint

impl Debug for UnixMountPoint[src]

impl Eq for UnixMountPoint[src]

impl Ord for UnixMountPoint[src]

impl PartialEq<UnixMountPoint> for UnixMountPoint[src]

impl PartialOrd<UnixMountPoint> for UnixMountPoint[src]

impl StaticType for UnixMountPoint

Auto Trait Implementations

impl RefUnwindSafe for UnixMountPoint

impl !Send for UnixMountPoint

impl !Sync for UnixMountPoint

impl Unpin for UnixMountPoint

impl UnwindSafe for UnixMountPoint

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToValue for T where
    T: SetValue + ?Sized

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.