pub struct FetchTransport { /* private fields */ }Expand description
ClientTransport backed by the global Workers fetch (arbitrary URL).
Useful for hitting an external ConnectRPC server. For same-zone calls
prefer FetcherTransport, since service bindings skip DNS and TLS
and don’t count against egress.
The transport rewrites the request URI’s scheme and authority to point
at base, so generated clients can keep using arbitrary Uris in
their ClientConfig without caring where the service actually lives.
Implementations§
Trait Implementations§
Source§impl ClientTransport for FetchTransport
impl ClientTransport for FetchTransport
Source§impl Clone for FetchTransport
impl Clone for FetchTransport
Source§fn clone(&self) -> FetchTransport
fn clone(&self) -> FetchTransport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for FetchTransport
impl RefUnwindSafe for FetchTransport
impl Send for FetchTransport
impl Sync for FetchTransport
impl Unpin for FetchTransport
impl UnsafeUnpin for FetchTransport
impl UnwindSafe for FetchTransport
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