pub struct NativeStorageCapabilities {
pub filesystem: String,
pub logical_bytes_per_sector: u32,
pub physical_bytes_per_sector_for_atomicity: u32,
pub physical_bytes_per_sector_for_performance: u32,
pub effective_physical_bytes_per_sector_for_atomicity: u32,
pub sectors_per_allocation_unit: u32,
pub allocation_unit_bytes: u64,
pub sparse_files: bool,
pub block_cloning: bool,
}Expand description
Exact immutable facts reported by the filesystem hosting one native root.
Fields§
§filesystem: StringStable filesystem implementation name reported by the host.
logical_bytes_per_sector: u32Logical sector bytes used by filesystem offsets and allocation units.
physical_bytes_per_sector_for_atomicity: u32Physical sector bytes required for atomic writes by the storage stack.
physical_bytes_per_sector_for_performance: u32Physical sector bytes preferred for storage-stack performance.
effective_physical_bytes_per_sector_for_atomicity: u32Filesystem-adjusted physical atomicity sector used for qualification.
sectors_per_allocation_unit: u32Logical sectors in one filesystem allocation unit.
allocation_unit_bytes: u64Checked product of sector size and sectors per allocation unit.
sparse_files: boolWhether the host advertises durable sparse-file allocation semantics.
block_cloning: boolWhether the host advertises same-volume block-reference cloning.
Trait Implementations§
Source§impl Clone for NativeStorageCapabilities
impl Clone for NativeStorageCapabilities
Source§impl Debug for NativeStorageCapabilities
impl Debug for NativeStorageCapabilities
impl Eq for NativeStorageCapabilities
impl StructuralPartialEq for NativeStorageCapabilities
Auto Trait Implementations§
impl Freeze for NativeStorageCapabilities
impl RefUnwindSafe for NativeStorageCapabilities
impl Send for NativeStorageCapabilities
impl Sync for NativeStorageCapabilities
impl Unpin for NativeStorageCapabilities
impl UnsafeUnpin for NativeStorageCapabilities
impl UnwindSafe for NativeStorageCapabilities
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request