pub struct NoFetcher;Expand description
A Fetcher that fails every request, for a build without transport.
Trait Implementations§
impl Copy for NoFetcher
Source§impl Fetcher for NoFetcher
impl Fetcher for NoFetcher
Source§fn fetch<'a>(
&'a self,
_url: &'a str,
_init: FetchInit,
) -> BoxFuture<'a, Result<Response, FetchError>>
fn fetch<'a>( &'a self, _url: &'a str, _init: FetchInit, ) -> BoxFuture<'a, Result<Response, FetchError>>
Sends the request and reads the answer.
Source§fn pins(&self) -> bool
fn pins(&self) -> bool
Whether the Fetcher connects to the addresses in
FetchInit::resolve and nowhere else, as the
default one does. A service’s name is looked up and checked, and its request pinned to what was
checked, only for a Fetcher that says so; any other is given the name, which it looks up itself.Auto Trait Implementations§
impl Freeze for NoFetcher
impl RefUnwindSafe for NoFetcher
impl Send for NoFetcher
impl Sync for NoFetcher
impl Unpin for NoFetcher
impl UnsafeUnpin for NoFetcher
impl UnwindSafe for NoFetcher
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