pub struct WindowsPlatform;Expand description
Windows platform implementation
Provides Windows-specific implementations on Windows, and stub implementations on Unix for cross-compilation.
Implementations§
Trait Implementations§
Source§impl Default for WindowsPlatform
impl Default for WindowsPlatform
Source§impl Platform for WindowsPlatform
impl Platform for WindowsPlatform
Source§fn total_memory(&self) -> Result<u64, PlatformError>
fn total_memory(&self) -> Result<u64, PlatformError>
Get total system memory in bytes Read more
Source§fn available_memory(&self) -> Result<u64, PlatformError>
fn available_memory(&self) -> Result<u64, PlatformError>
Get available system memory in bytes Read more
Source§fn line_separator(&self) -> &'static str
fn line_separator(&self) -> &'static str
Get the platform-specific line separator Read more
Source§fn path_separator(&self) -> char
fn path_separator(&self) -> char
Get the platform-specific path separator for PATH environment variable Read more
Source§fn platform_name(&self) -> &'static str
fn platform_name(&self) -> &'static str
Get the platform name Read more
Source§fn is_elevated(&self) -> bool
fn is_elevated(&self) -> bool
Check if running with elevated privileges Read more
Source§fn set_permissions(&self, _path: &Path, _mode: u32) -> Result<(), PlatformError>
fn set_permissions(&self, _path: &Path, _mode: u32) -> Result<(), PlatformError>
Set file permissions (Unix-specific, no-op on Windows) Read more
Auto Trait Implementations§
impl Freeze for WindowsPlatform
impl RefUnwindSafe for WindowsPlatform
impl Send for WindowsPlatform
impl Sync for WindowsPlatform
impl Unpin for WindowsPlatform
impl UnwindSafe for WindowsPlatform
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