pub struct HttpOutbound { /* private fields */ }Implementations§
Source§impl HttpOutbound
impl HttpOutbound
pub fn new() -> Result<HttpOutbound>
pub fn with_timeout(millis: i64) -> Result<HttpOutbound>
Sourcepub fn install() -> bool
pub fn install() -> bool
Install this as the process’s client, if nothing has installed one.
Returns whether it was installed. A beck test process deliberately does not call this:
net.out is auto-stubbed there (§21.3), and a test that reached a real socket would be a
test that depends on somebody else’s uptime.
Trait Implementations§
Source§impl Debug for HttpOutbound
impl Debug for HttpOutbound
Auto Trait Implementations§
impl !Freeze for HttpOutbound
impl !RefUnwindSafe for HttpOutbound
impl Send for HttpOutbound
impl Sync for HttpOutbound
impl Unpin for HttpOutbound
impl !UnwindSafe for HttpOutbound
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