Skip to main content

QStorageInfo

Struct QStorageInfo 

Source
pub struct QStorageInfo { /* private fields */ }
Expand description

C++ class: QStorageInfo.

Implementations§

Source§

impl QStorageInfo

Source

pub unsafe fn block_size(&self) -> c_int

Calls C++ function: int QStorageInfo::blockSize() const.

Source

pub unsafe fn bytes_available(&self) -> c_longlong

Calls C++ function: long long QStorageInfo::bytesAvailable() const.

Source

pub unsafe fn bytes_free(&self) -> c_longlong

Calls C++ function: long long QStorageInfo::bytesFree() const.

Source

pub unsafe fn bytes_total(&self) -> c_longlong

Calls C++ function: long long QStorageInfo::bytesTotal() const.

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QStorageInfo>>, ) -> Ref<QStorageInfo>

Calls C++ function: QStorageInfo& QStorageInfo::operator=(const QStorageInfo& other).

Source

pub unsafe fn device(&self) -> CppBox<QByteArray>

Calls C++ function: QByteArray QStorageInfo::device() const.

Source

pub unsafe fn display_name(&self) -> CppBox<QString>

Calls C++ function: QString QStorageInfo::displayName() const.

Source

pub unsafe fn file_system_type(&self) -> CppBox<QByteArray>

Calls C++ function: QByteArray QStorageInfo::fileSystemType() const.

Source

pub unsafe fn is_read_only(&self) -> bool

Calls C++ function: bool QStorageInfo::isReadOnly() const.

Source

pub unsafe fn is_ready(&self) -> bool

Calls C++ function: bool QStorageInfo::isReady() const.

Source

pub unsafe fn is_root(&self) -> bool

Calls C++ function: bool QStorageInfo::isRoot() const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QStorageInfo::isValid() const.

Source

pub unsafe fn mounted_volumes() -> CppBox<QListOfQStorageInfo>

Calls C++ function: static QList<QStorageInfo> QStorageInfo::mountedVolumes().

Source

pub unsafe fn name(&self) -> CppBox<QString>

Calls C++ function: QString QStorageInfo::name() const.

Source

pub unsafe fn new() -> CppBox<QStorageInfo>

Calls C++ function: [constructor] void QStorageInfo::QStorageInfo().

Source

pub unsafe fn from_q_string( path: impl CastInto<Ref<QString>>, ) -> CppBox<QStorageInfo>

Calls C++ function: [constructor] void QStorageInfo::QStorageInfo(const QString& path).

Source

pub unsafe fn from_q_dir(dir: impl CastInto<Ref<QDir>>) -> CppBox<QStorageInfo>

Calls C++ function: [constructor] void QStorageInfo::QStorageInfo(const QDir& dir).

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<QStorageInfo>>, ) -> CppBox<QStorageInfo>

Calls C++ function: [constructor] void QStorageInfo::QStorageInfo(const QStorageInfo& other).

Source

pub unsafe fn refresh(&self)

Calls C++ function: void QStorageInfo::refresh().

Source

pub unsafe fn root() -> CppBox<QStorageInfo>

Calls C++ function: static QStorageInfo QStorageInfo::root().

Source

pub unsafe fn root_path(&self) -> CppBox<QString>

Calls C++ function: QString QStorageInfo::rootPath() const.

Source

pub unsafe fn set_path(&self, path: impl CastInto<Ref<QString>>)

Calls C++ function: void QStorageInfo::setPath(const QString& path).

Source

pub unsafe fn subvolume(&self) -> CppBox<QByteArray>

Calls C++ function: QByteArray QStorageInfo::subvolume() const.

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QStorageInfo>>)

Calls C++ function: void QStorageInfo::swap(QStorageInfo& other).

Trait Implementations§

Source§

impl CppDeletable for QStorageInfo

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QStorageInfo::~QStorageInfo().

Source§

impl PartialEq<Ref<QStorageInfo>> for QStorageInfo

Source§

fn eq(&self, second: &Ref<QStorageInfo>) -> bool

Calls C++ function: bool operator==(const QStorageInfo& first, const QStorageInfo& second).

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.