pub struct NativePlatform { /* private fields */ }Expand description
Native platform implementation using std, tokio, and reqwest.
This is the standard platform for server-side and CLI usage. It provides:
- HTTP via
reqwestwith connection pooling and TLS. - Filesystem via
tokio::fs. - Environment via [
std::env]. - Process spawning via
tokio::process.
Implementations§
Trait Implementations§
Source§impl Default for NativePlatform
Available on crate feature native only.
impl Default for NativePlatform
Available on crate feature
native only.Source§impl Platform for NativePlatform
impl Platform for NativePlatform
Source§fn http(&self) -> &dyn HttpClient
fn http(&self) -> &dyn HttpClient
HTTP client for making API requests.
Source§fn fs(&self) -> &dyn FileSystem
fn fs(&self) -> &dyn FileSystem
Filesystem operations.
Source§fn env(&self) -> &dyn Environment
fn env(&self) -> &dyn Environment
Environment variable access.
Auto Trait Implementations§
impl Freeze for NativePlatform
impl !RefUnwindSafe for NativePlatform
impl Send for NativePlatform
impl Sync for NativePlatform
impl Unpin for NativePlatform
impl UnsafeUnpin for NativePlatform
impl !UnwindSafe for NativePlatform
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