pub struct WinNvmeDriver {
pub hardware_present: bool,
/* private fields */
}Expand description
On Windows, raw NVMe Admin and NVM commands are sent via
DeviceIoControl(IOCTL_STORAGE_QUERY_PROPERTY / IOCTL_STORAGE_PROTOCOL_COMMAND)
against \\.\PhysicalDriveN. Requires Administrator privileges.
Falls back to MmapDriver automatically when:
- Not running as Administrator
- Running on a virtual disk (WSL2 .vhdx, Hyper-V)
- Physical drive has no NVMe ZNS capability
Fields§
§hardware_present: boolImplementations§
Source§impl WinNvmeDriver
impl WinNvmeDriver
Trait Implementations§
Source§impl StorageDriver for WinNvmeDriver
impl StorageDriver for WinNvmeDriver
Source§fn capabilities(&self) -> DriverCapabilities
fn capabilities(&self) -> DriverCapabilities
Report DriverKind::WinNvme — zone-append and CSD flags reflect hardware_present.
Source§fn write(&self, key: &str, data: &[u8]) -> Result<(), StorageError>
fn write(&self, key: &str, data: &[u8]) -> Result<(), StorageError>
Delegate to the overlay (passthrough scaffold).
Source§fn read_range(
&self,
key: &str,
offset: usize,
len: usize,
) -> Result<Vec<u8>, StorageError>
fn read_range( &self, key: &str, offset: usize, len: usize, ) -> Result<Vec<u8>, StorageError>
Delegate to the overlay.
Source§fn snapshot(&self, snapshot_id: &str) -> Result<(), StorageError>
fn snapshot(&self, snapshot_id: &str) -> Result<(), StorageError>
Delegate to the overlay (full copy).
Source§fn prefetch_hint(&self, _key: &str)
fn prefetch_hint(&self, _key: &str)
No-op.
Source§fn eviction_hint(&self, _key: &str)
fn eviction_hint(&self, _key: &str)
No-op.
Auto Trait Implementations§
impl Freeze for WinNvmeDriver
impl RefUnwindSafe for WinNvmeDriver
impl Send for WinNvmeDriver
impl Sync for WinNvmeDriver
impl Unpin for WinNvmeDriver
impl UnsafeUnpin for WinNvmeDriver
impl UnwindSafe for WinNvmeDriver
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more