pub struct EgressClient { /* private fields */ }Expand description
Sends requests under one Allowance; see the module docs.
Implementations§
Source§impl EgressClient
impl EgressClient
pub fn allowance(&self) -> Allowance
Sourcepub async fn send(&self, request: Request) -> Result<Response, EgressError>
pub async fn send(&self, request: Request) -> Result<Response, EgressError>
Checks request’s URL and sends it; the whole exchange, body
included, must finish within the request’s timeout, or else
Timeouts::request.
Sourcepub async fn send_streaming(
&self,
request: Request,
) -> Result<Response, EgressError>
pub async fn send_streaming( &self, request: Request, ) -> Result<Response, EgressError>
Checks request’s URL and sends it; the response head must arrive
within the request’s timeout, or else Timeouts::request, and the
body then has no deadline.
Trait Implementations§
Source§impl Clone for EgressClient
impl Clone for EgressClient
Source§impl Debug for EgressClient
impl Debug for EgressClient
Source§impl Transport for EgressClient
The egress client sends a push as any other request (kernel spec §7.1):
its policy refuses a non-public address before anything is sent, and an
error never carries the endpoint.
impl Transport for EgressClient
The egress client sends a push as any other request (kernel spec §7.1): its policy refuses a non-public address before anything is sent, and an error never carries the endpoint.
Auto Trait Implementations§
impl !RefUnwindSafe for EgressClient
impl !UnwindSafe for EgressClient
impl Freeze for EgressClient
impl Send for EgressClient
impl Sync for EgressClient
impl Unpin for EgressClient
impl UnsafeUnpin for EgressClient
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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