pub struct FallbackSimpleHttp { /* private fields */ }
Expand description
Simple http implementation that falls back to delegated http if making a direct reqwest fails.
Implementations§
Source§impl FallbackSimpleHttp
impl FallbackSimpleHttp
pub fn new(native: ReqwestSimpleHttp, delegated: DelegatedSimpleHttp) -> Self
pub fn native(&self) -> ReqwestSimpleHttp
pub fn delegated(&self) -> DelegatedSimpleHttp
Trait Implementations§
Source§impl SimpleHttp for FallbackSimpleHttp
impl SimpleHttp for FallbackSimpleHttp
Auto Trait Implementations§
impl Freeze for FallbackSimpleHttp
impl !RefUnwindSafe for FallbackSimpleHttp
impl Send for FallbackSimpleHttp
impl Sync for FallbackSimpleHttp
impl Unpin for FallbackSimpleHttp
impl !UnwindSafe for FallbackSimpleHttp
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