#[non_exhaustive]pub struct VolumeInfo {
pub total_allocation_units: u64,
pub caller_available_allocation_units: u64,
pub actual_available_allocation_units: u64,
pub sectors_per_allocation_unit: u32,
pub bytes_per_sector: u32,
pub serial_number: u32,
pub label: Option<String>,
pub max_name_length: u32,
}Expand description
Volume behind a share, as reported by FileFsVolumeInformation, FileFsSizeInformation, FileFsFullSizeInformation, FileFsAttributeInformation and FileFsSectorSizeInformation (MS-FSCC 2.5).
Sizes count allocation units of sectors_per_allocation_unit * bytes_per_sector bytes. Built from VolumeInfo::default; every
field is public.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.total_allocation_units: u64Total allocation units on the volume.
caller_available_allocation_units: u64Free allocation units available to the share’s users, after quotas and reserved space.
actual_available_allocation_units: u64Free allocation units on the volume.
sectors_per_allocation_unit: u32Sectors in one allocation unit.
bytes_per_sector: u32Bytes in one sector.
serial_number: u32Volume serial number.
label: Option<String>Volume label. None reports the share name.
max_name_length: u32Longest file name the volume stores, in characters.
Trait Implementations§
Source§impl Clone for VolumeInfo
impl Clone for VolumeInfo
Source§impl Debug for VolumeInfo
impl Debug for VolumeInfo
Source§impl Default for VolumeInfo
impl Default for VolumeInfo
impl Eq for VolumeInfo
Source§impl PartialEq for VolumeInfo
impl PartialEq for VolumeInfo
impl StructuralPartialEq for VolumeInfo
Auto Trait Implementations§
impl Forget for VolumeInfo
impl Freeze for VolumeInfo
impl Move for VolumeInfo
impl RefUnwindSafe for VolumeInfo
impl Send for VolumeInfo
impl Sync for VolumeInfo
impl Unpin for VolumeInfo
impl UnsafeUnpin for VolumeInfo
impl UnwindSafe for VolumeInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
Source§type NoneType = T
type NoneType = T
The type of the none-equivalent value that
NoneValue::null_value produces.Source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.