pub enum Tier {
NativeStack,
Unavailable,
}Expand description
How requests are realized on the compiled target.
Variants§
NativeStack
The platform’s own networking stack (URLSession, OkHttp, WinHTTP, libcurl, the Network
Kit, the browser’s fetch): system proxy + PAC, VPN routing, platform TLS + certificate
stores. On the web this tier is async-only; the blocking entry points return
HttpError::Unsupported (docs/http.md).
No HTTP capability (no libcurl on Linux, a HarmonyOS build without its staged arm, an
unknown target); every call returns HttpError::Unsupported.
Implementations§
Trait Implementations§
impl Copy for Tier
impl Eq for Tier
impl StructuralPartialEq for Tier
Auto Trait Implementations§
impl Forget for Tier
impl Freeze for Tier
impl Move for Tier
impl RefUnwindSafe for Tier
impl Send for Tier
impl Sync for Tier
impl Unpin for Tier
impl UnsafeUnpin for Tier
impl UnwindSafe for Tier
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