pub struct UnixPlatform;Expand description
Unix (POSIX) platform implementation
Supports Linux and macOS using POSIX APIs and platform-specific syscalls.
Implementations§
Source§impl UnixPlatform
impl UnixPlatform
Trait Implementations§
Source§impl Default for UnixPlatform
impl Default for UnixPlatform
Source§impl Platform for UnixPlatform
impl Platform for UnixPlatform
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 UnixPlatform
impl RefUnwindSafe for UnixPlatform
impl Send for UnixPlatform
impl Sync for UnixPlatform
impl Unpin for UnixPlatform
impl UnwindSafe for UnixPlatform
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